From 7a080053c8df3ba28ba48cf7adc3c102c1a20dc7 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 27 Jan 2022 17:53:38 +0100 Subject: [PATCH] Add support for cacule CPU scheduler on 5.16 and 5.17 Fixes https://github.com/Frogging-Family/linux-tkg/issues/410 --- linux-tkg-config/prepare | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 3d37770..f4004f3 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -162,9 +162,9 @@ _set_cpu_scheduler() { elif [ "$_basever" = "515" ]; then _avail_cpu_scheds=("pds" "bmq" "cacule" "cfs") elif [ "$_basever" = "516" ]; then - _avail_cpu_scheds=("pds" "bmq" "cfs") + _avail_cpu_scheds=("pds" "bmq" "cacule" "cfs") elif [ "$_basever" = "517" ]; then - _avail_cpu_scheds=("pds" "bmq" "cfs") + _avail_cpu_scheds=("pds" "bmq" "cacule" "cfs") else _avail_cpu_scheds=("cfs") fi @@ -553,15 +553,19 @@ _tkg_srcprep() { if [ "${_distro}" = "Void" ]; then if [[ $_basever < 515 ]]; then wget -P "$wrksrc" "https://raw.githubusercontent.com/hamadmarri/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/cacule-${_basekernel}.patch" - else + elif [[ $_basever = 515 ]]; then wget -P "$wrksrc" "https://raw.githubusercontent.com/CachyOS/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/cacule-${_basekernel}.patch" + else + wget -P "$wrksrc" "https://raw.githubusercontent.com/CachyOS/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/0001-cacULE-${_basekernel}-full.patch" fi tkgpatch="$wrksrc/cacule-${_basekernel}.patch" && _tkg_patcher else if [[ $_basever < 515 ]]; then wget -P "$srcdir" "https://raw.githubusercontent.com/hamadmarri/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/cacule-${_basekernel}.patch" - else + elif [[ $_basever = 515 ]]; then wget -P "$srcdir" "https://raw.githubusercontent.com/CachyOS/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/cacule-${_basekernel}.patch" + else + wget -P "$srcdir" "https://raw.githubusercontent.com/CachyOS/cacule-cpu-scheduler/master/patches/CacULE/v${_basekernel}/0001-cacULE-${_basekernel}-full.patch" fi tkgpatch="$srcdir/cacule-${_basekernel}.patch" && _tkg_patcher fi