From aa69546f0113155f1fafbf827590432a7d81b8c5 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Sat, 5 Nov 2022 18:24:07 +0100 Subject: [PATCH] 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 --- linux-tkg-config/prepare | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 1368bd1..f5eae3a 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -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