preempt_rt: Add a warning regarding cpu schedulers availability when preempt_rt is enabled

Fixes https://github.com/Frogging-Family/linux-tkg/issues/635
This commit is contained in:
Tk-Glitch
2022-11-05 18:01:52 +01:00
parent f79f7ddb8e
commit accb6d07f4

View File

@@ -285,6 +285,7 @@ _set_cpu_scheduler() {
fi
if [ "${_preempt_rt}" = "1" ]; then
warning "! Since you have enabled _preempt_rt, incompatible cpu schedulers will not be available !"
if [[ "${_avail_cpu_scheds[*]}" =~ "bore" ]]; then
_avail_cpu_scheds=("cfs" "bore")
else