linux 6.0.y: Due to popular demand, allow unofficial Project C port again but make it clear it might be unstable
Since we are either doing ports ourselves or using other's while we wait for Alfred's, let's handle unofficial versions with a toggle "marking" them until proper release eventually becomes available. Fixes https://github.com/Frogging-Family/linux-tkg/issues/631
This commit is contained in:
@@ -277,7 +277,8 @@ _set_cpu_scheduler() {
|
||||
elif [ "$_kver" = "519" ]; then
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "cacule" "tt" "bore")
|
||||
elif [ "$_kver" = "600" ]; then
|
||||
_avail_cpu_scheds=("cfs" "tt" "bore")
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "tt" "bore")
|
||||
_projectc_unoff="1"
|
||||
elif [ "$_kver" = "601" ]; then
|
||||
_avail_cpu_scheds=("cfs" "bore")
|
||||
else
|
||||
@@ -296,7 +297,11 @@ _set_cpu_scheduler() {
|
||||
# Populate descriptions of the available CPU schedulers
|
||||
_avail_cpu_scheds_text=()
|
||||
for _sched in "${_avail_cpu_scheds[@]}"; do
|
||||
_avail_cpu_scheds_text+=("${_sched_description_array[$_sched]}")
|
||||
if [ "$_sched" = "pds" ] || [ "$_sched" = "bmq" ] && [ "$_projectc_unoff" = "1" ]; then
|
||||
_avail_cpu_scheds_text+=("Project C / ${_sched^^} (unofficial port - ! possibly unstable !)")
|
||||
else
|
||||
_avail_cpu_scheds_text+=("${_sched_description_array[$_sched]}")
|
||||
fi
|
||||
done
|
||||
|
||||
if ! [[ ${_avail_cpu_scheds[*]} =~ "$_cpusched" ]]; then
|
||||
|
Reference in New Issue
Block a user