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:
Tk-Glitch
2022-09-05 18:52:37 +02:00
parent 6b81b1f84a
commit cb5a66a1e5

View File

@@ -175,6 +175,7 @@ _set_cpu_scheduler() {
["upds"]="Undead PDS (TkG)" ["upds"]="Undead PDS (TkG)"
["cacule"]="CacULE" ["cacule"]="CacULE"
["tt"]="TT (TaskType)" ["tt"]="TT (TaskType)"
["bore"]="BORE (Burst-Oriented Response Enhancer) CPU Scheduler"
) )
# CPU SCHED selector # CPU SCHED selector
@@ -199,11 +200,13 @@ _set_cpu_scheduler() {
elif [ "$_basever" = "516" ]; then elif [ "$_basever" = "516" ]; then
_avail_cpu_scheds=("pds" "bmq" "cacule" "cfs") _avail_cpu_scheds=("pds" "bmq" "cacule" "cfs")
elif [ "$_basever" = "517" ]; then 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 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 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 else
_avail_cpu_scheds=("cfs") _avail_cpu_scheds=("cfs")
fi fi
@@ -650,7 +653,19 @@ _tkg_srcprep() {
curl "https://raw.githubusercontent.com/hamadmarri/TT-CPU-Scheduler/master/patches/${_basekernel}/high-hz.patch" > "$srcdir"/tt_high_hz.patch curl "https://raw.githubusercontent.com/hamadmarri/TT-CPU-Scheduler/master/patches/${_basekernel}/high-hz.patch" > "$srcdir"/tt_high_hz.patch
tkgpatch="$srcdir/tt_high_hz.patch" && _tkg_patcher tkgpatch="$srcdir/tt_high_hz.patch" && _tkg_patcher
fi fi
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 elif [ "${_cpusched}" = "cfs" ]; then
_msg="Applying Glitched CFS patch" _msg="Applying Glitched CFS patch"
tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher