Simplify adding supported scheds to the rt specific scheds list
This commit is contained in:
@@ -302,11 +302,11 @@ _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 !"
|
||||||
|
_avail_cpu_scheds_rt=("cfs")
|
||||||
if [[ "${_avail_cpu_scheds[*]}" =~ "bore" ]]; then
|
if [[ "${_avail_cpu_scheds[*]}" =~ "bore" ]]; then
|
||||||
_avail_cpu_scheds=("cfs" "bore")
|
_avail_cpu_scheds_rt+=("bore")
|
||||||
else
|
|
||||||
_avail_cpu_scheds=("cfs")
|
|
||||||
fi
|
fi
|
||||||
|
_avail_cpu_scheds=(${_avail_cpu_scheds_rt[*]})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Populate descriptions of the available CPU schedulers
|
# Populate descriptions of the available CPU schedulers
|
||||||
|
Reference in New Issue
Block a user