Enable TT for 5.19rc and TT High HZ patch for 5.15 (#538)

* Enable TT for 5.19 and TT High HZ patch for 5.15

* Reset config from testing
This commit is contained in:
Daedalusspacegames
2022-06-14 07:23:53 -07:00
committed by GitHub
parent 1d1ccfccbe
commit 5b8ff011c7
2 changed files with 15 additions and 0 deletions

View File

@@ -200,6 +200,9 @@ _cacule_rdb="false"
# https://github.com/hamadmarri/cacule-cpu-scheduler/blob/master/patches/CacULE/RDB/rdb.patch#L56
_cacule_rdb_interval="19"
# TT only - Enable High HZ patch (available for 5.15 only) - Default is "false"
_tt_high_hz="false"
# MuQSS and PDS only - SMT (Hyperthreading) aware nice priority and policy support (SMT_NICE) - Kernel default is "true" - You can disable this on non-SMT/HT CPUs for lower overhead
_smt_nice=""

View File

@@ -201,6 +201,8 @@ _set_cpu_scheduler() {
_avail_cpu_scheds=("pds" "bmq" "cacule" "tt" "cfs")
elif [ "$_basever" = "518" ]; then
_avail_cpu_scheds=("pds" "bmq" "cacule" "tt" "cfs")
elif [ "$_basever" = "519" ]; then
_avail_cpu_scheds=("tt" "cfs")
else
_avail_cpu_scheds=("cfs")
fi
@@ -633,6 +635,16 @@ _tkg_srcprep() {
fi
tkgpatch="$srcdir/tt.patch" && _tkg_patcher
fi
if [ "$_tt_high_hz" = "true" ] && [ $_basever = 515 ]; then
_msg="Applying TT High HZ patch"
if [ "${_distro}" = "Void" ]; then
curl "https://raw.githubusercontent.com/hamadmarri/TT-CPU-Scheduler/master/patches/${_basekernel}/high-hz.patch" > "$wrksrc"/tt_high_hz.patch
tkgpatch="$wrksrc/tt_high_hz.patch" && _tkg_patcher
else
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
fi
fi
elif [ "${_cpusched}" = "cfs" ]; then
_msg="Applying Glitched CFS patch"
tkgpatch="$srcdir/0003-glitched-cfs.patch" && _tkg_patcher