From dd2aef31ca9fbf38157c55f27bbf4da1422b75b3 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 29 Aug 2023 03:00:50 +0200 Subject: [PATCH] Simplify adding supported scheds to the rt specific scheds list --- linux-tkg-config/prepare | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 9249196..0c96497 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -302,11 +302,11 @@ _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[*]}" =~ "bore" ]]; then - _avail_cpu_scheds=("cfs" "bore") - else - _avail_cpu_scheds=("cfs") + _avail_cpu_scheds_rt+=("bore") fi + _avail_cpu_scheds=(${_avail_cpu_scheds_rt[*]}) fi # Populate descriptions of the available CPU schedulers