Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Set sched-ext as default CachyOS scheduler (#209)
Piotr Górski23f482c7929d
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex 9f707bed..4a888bff 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -20,7 +20,6 @@ _cachy_config=${_cachy_config-y}# 'sched-ext' - select 'sched-ext' Scheduler, based on EEVDF_cpusched=${_cpusched-bore}-### Tweak kernel options prior to a build via nconfig_makenconfig=${_makenconfig-}@@ -193,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -223,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -239,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -300,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -555,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex b4fe7807..367bb082 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -193,7 +193,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -223,10 +223,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -239,9 +240,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -300,11 +298,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -555,7 +553,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-eevdf/PKGBUILD b/linux-cachyos-eevdf/PKGBUILDindex 2fe31d11..e47c0fb6 100644--- a/linux-cachyos-eevdf/PKGBUILD+++ b/linux-cachyos-eevdf/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 6aa86395..5cd9a0bb 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-rt-bore/PKGBUILD b/linux-cachyos-rt-bore/PKGBUILDindex 6540dd8b..c45400e3 100644--- a/linux-cachyos-rt-bore/PKGBUILD+++ b/linux-cachyos-rt-bore/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-rt/PKGBUILD b/linux-cachyos-rt/PKGBUILDindex 7c4a465e..75dcabf6 100644--- a/linux-cachyos-rt/PKGBUILD+++ b/linux-cachyos-rt/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-sched-ext/PKGBUILD b/linux-cachyos-sched-ext/PKGBUILDindex 3c97e980..11d4fc5c 100644--- a/linux-cachyos-sched-ext/PKGBUILD+++ b/linux-cachyos-sched-ext/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 998a58e0..7a1c17e6 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \diff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex b648f154..37e313d1 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -173,7 +173,7 @@ _stable=${_major}#_stablerc=${_major}-${_rcver}_srcname=linux-${_stable}#_srcname=linux-${_major}-pkgdesc='Linux EEVDF-BORE scheduler Kernel by CachyOS with other patches and improvements'+pkgdesc='Linux SCHED-EXT with BORE scheduler Kernel by CachyOS with other patches and improvements'pkgrel=3_kernver=$pkgver-$pkgrelarch=('x86_64' 'x86_64_v3')@@ -192,7 +192,7 @@ if [[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_k)fi-if [ "$_cpusched" = "sched-ext" ]; then+if [[ "$_cpusched" = "sched-ext" || "$_cpusched" = "cachyos" ]]; thendepends+=(scx-scheds)fi@@ -222,10 +222,11 @@ if [ -n "$_build_nvidia" ]; then"$_patchsource/misc/nvidia/nvidia-drm-hotplug-workqueue.patch")fi-## ToDo: Adjust for new Scheduler Changes+## List of CachyOS schedulerscase "$_cpusched" in- cachyos) # CachyOS Scheduler (EEVDF + BORE)- source+=("${_patchsource}/sched/0001-bore-cachy.patch");;+ cachyos|sched-ext) # CachyOS Scheduler (BORE + EEVDF)+ source+=("${_patchsource}/sched/0001-sched-ext.patch"+ "${_patchsource}/sched/0001-bore-cachy.patch");;bore) ## BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch");;rt) ## EEVDF with RT patches@@ -238,9 +239,6 @@ case "$_cpusched" inhardened) ## Hardened Patches with BORE Schedulersource+=("${_patchsource}/sched/0001-bore-cachy.patch""${_patchsource}/misc/0001-hardened.patch");;- sched-ext) ## Sched-ext with BORE- source+=("${_patchsource}/sched/0001-sched-ext.patch"- "${_patchsource}/sched/0001-bore-cachy.patch");;esac## lrng patchset@@ -299,11 +297,11 @@ prepare() {[ -z "$_cpusched" ] && _die "The value is empty. Choose the correct one again."case "$_cpusched" in- bore|hardened|cachyos) scripts/config -e SCHED_BORE;;+ cachyos|sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;+ bore|hardened) scripts/config -e SCHED_BORE;;eevdf) ;;rt) scripts/config -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;rt-bore) scripts/config -e SCHED_BORE -e PREEMPT_COUNT -e PREEMPTION -d PREEMPT_VOLUNTARY -d PREEMPT -d PREEMPT_NONE -e PREEMPT_RT -d PREEMPT_DYNAMIC -d PREEMPT_BUILD;;- sched-ext) scripts/config -e SCHED_BORE -e SCHED_CLASS_EXT;;*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac@@ -554,7 +552,7 @@ prepare() {### Disable DEBUG# Doesn't work with sched-ext# More infos here: https://github.com/CachyOS/linux-cachyos/issues/187- if [[ "$_cpusched" != "sched-ext" && -n "$_disable_debug" ]]; then+ if [[ "$_cpusched" != "sched-ext" || "$_cpusched" != "cachyos" ]] && [ -n "$_disable_debug" ]; thenscripts/config -d DEBUG_INFO \-d DEBUG_INFO_BTF \-d DEBUG_INFO_DWARF4 \