From ed68908438f89f4c1a1d2566e28800f1fd4e6f6e Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 15 Sep 2023 15:12:32 +0200 Subject: [PATCH] Update preempt-rt scheduler selector for non-cfs (6.6+) --- linux-tkg-config/prepare | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index dddfb08..ffc3300 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -309,10 +309,18 @@ _set_cpu_scheduler() { if [ "${_preempt_rt}" = "1" ]; then warning "! Since you have enabled _preempt_rt, incompatible cpu schedulers will not be available !" - _avail_cpu_scheds_rt=("cfs") + if [[ "${_avail_cpu_scheds[*]}" =~ "cfs" ]]; then + _avail_cpu_scheds_rt=("cfs") + fi + if [[ "${_avail_cpu_scheds[*]}" =~ "eevdf" ]] && ! [[ "${_avail_cpu_scheds[*]}" =~ "cfs" ]]; then + _avail_cpu_scheds_rt=("eevdf") + fi if [[ "${_avail_cpu_scheds[*]}" =~ "bore" ]]; then _avail_cpu_scheds_rt+=("bore") fi + if [[ "${_avail_cpu_scheds[*]}" =~ "bore-eevdf" ]] && ! [[ "${_avail_cpu_scheds[*]}" =~ "cfs" ]]; then + _avail_cpu_scheds_rt+=("bore-eevdf") + fi _avail_cpu_scheds=(${_avail_cpu_scheds_rt[*]}) fi