Update preempt-rt scheduler selector for non-cfs (6.6+)
This commit is contained in:
@@ -309,10 +309,18 @@ _set_cpu_scheduler() {
|
|||||||
|
|
||||||
if [ "${_preempt_rt}" = "1" ]; then
|
if [ "${_preempt_rt}" = "1" ]; then
|
||||||
warning "! Since you have enabled _preempt_rt, incompatible cpu schedulers will not be available !"
|
warning "! Since you have enabled _preempt_rt, incompatible cpu schedulers will not be available !"
|
||||||
|
if [[ "${_avail_cpu_scheds[*]}" =~ "cfs" ]]; then
|
||||||
_avail_cpu_scheds_rt=("cfs")
|
_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
|
if [[ "${_avail_cpu_scheds[*]}" =~ "bore" ]]; then
|
||||||
_avail_cpu_scheds_rt+=("bore")
|
_avail_cpu_scheds_rt+=("bore")
|
||||||
fi
|
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[*]})
|
_avail_cpu_scheds=(${_avail_cpu_scheds_rt[*]})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user