Add BORE scheduler support for 5.17, 5.18, 5.19 and 6.0 RC
https://github.com/firelzrd/bore-scheduler Fixes https://github.com/Frogging-Family/linux-tkg/issues/559
This commit is contained in:
@@ -175,6 +175,7 @@ _set_cpu_scheduler() {
|
||||
["upds"]="Undead PDS (TkG)"
|
||||
["cacule"]="CacULE"
|
||||
["tt"]="TT (TaskType)"
|
||||
["bore"]="BORE (Burst-Oriented Response Enhancer) CPU Scheduler"
|
||||
)
|
||||
|
||||
# CPU SCHED selector
|
||||
@@ -199,11 +200,13 @@ _set_cpu_scheduler() {
|
||||
elif [ "$_basever" = "516" ]; then
|
||||
_avail_cpu_scheds=("pds" "bmq" "cacule" "cfs")
|
||||
elif [ "$_basever" = "517" ]; then
|
||||
_avail_cpu_scheds=("pds" "bmq" "cacule" "tt" "cfs")
|
||||
_avail_cpu_scheds=("pds" "bmq" "cacule" "tt" "cfs" "bore")
|
||||
elif [ "$_basever" = "518" ]; then
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "cacule" "tt")
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "cacule" "tt" "bore")
|
||||
elif [ "$_basever" = "519" ]; then
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "cacule" "tt")
|
||||
_avail_cpu_scheds=("cfs" "pds" "bmq" "cacule" "tt" "bore")
|
||||
elif [ "$_basever" = "60" ]; then
|
||||
_avail_cpu_scheds=("cfs" "bore")
|
||||
else
|
||||
_avail_cpu_scheds=("cfs")
|
||||
fi
|
||||
@@ -651,6 +654,18 @@ _tkg_srcprep() {
|
||||
tkgpatch="$srcdir/tt_high_hz.patch" && _tkg_patcher
|
||||
fi
|
||||
fi
|
||||
elif [ "${_cpusched}" = "bore" ]; then
|
||||
_msg="Applying BORE patch"
|
||||
if [ "$_basever" = "518" ]; then
|
||||
_bore_suffix="-sched"
|
||||
fi
|
||||
if [ "${_distro}" = "Void" ]; then
|
||||
curl "https://raw.githubusercontent.com/CachyOS/kernel-patches/master/${_basekernel}/sched/0001-bore$_bore_suffix.patch" > "$wrksrc"/0001-bore.patch
|
||||
tkgpatch="$wrksrc/0001-bore.patch" && _tkg_patcher
|
||||
else
|
||||
curl "https://raw.githubusercontent.com/CachyOS/kernel-patches/master/${_basekernel}/sched/0001-bore$_bore_suffix.patch" > "$srcdir"/0001-bore.patch
|
||||
tkgpatch="$srcdir/0001-bore.patch" && _tkg_patcher
|
||||
fi
|
||||
elif [ "${_cpusched}" = "cfs" ]; then
|
||||
_msg="Applying Glitched CFS patch"
|
||||
tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher
|
||||
|
Reference in New Issue
Block a user