Archlinux Kernel based on different schedulers and some other performance improvements.
Shell archlinuxbaby-schedcachycachy-schedulercachyoscacule-schedkernellinux-kernelperformanceperformance-tuning
Use built-in bash substitution for uppercase
Vasiliy Stelmachenok9fedda376f82
diff --git a/linux-bore/PKGBUILD b/linux-bore/PKGBUILDindex fa6beb09..2fa9966a 100644--- a/linux-bore/PKGBUILD+++ b/linux-bore/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-bmq/PKGBUILD b/linux-cachyos-bmq/PKGBUILDindex e5eb72df..1f31a6a5 100644--- a/linux-cachyos-bmq/PKGBUILD+++ b/linux-cachyos-bmq/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-bore/PKGBUILD b/linux-cachyos-bore/PKGBUILDindex 814dec19..1f3324f6 100644--- a/linux-cachyos-bore/PKGBUILD+++ b/linux-cachyos-bore/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-cfs/PKGBUILD b/linux-cachyos-cfs/PKGBUILDindex be66db51..12e64d47 100644--- a/linux-cachyos-cfs/PKGBUILD+++ b/linux-cachyos-cfs/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-hardened/PKGBUILD b/linux-cachyos-hardened/PKGBUILDindex a42cde5c..f1a04183 100644--- a/linux-cachyos-hardened/PKGBUILD+++ b/linux-cachyos-hardened/PKGBUILD@@ -302,7 +302,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -331,8 +331,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-lts/PKGBUILD b/linux-cachyos-lts/PKGBUILDindex e1d4743b..94148a6e 100644--- a/linux-cachyos-lts/PKGBUILD+++ b/linux-cachyos-lts/PKGBUILD@@ -306,7 +306,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -335,8 +335,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-pds/PKGBUILD b/linux-cachyos-pds/PKGBUILDindex 7f2e3d0d..a36c672b 100644--- a/linux-cachyos-pds/PKGBUILD+++ b/linux-cachyos-pds/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILDindex 89013340..126d25b8 100644--- a/linux-cachyos-rc/PKGBUILD+++ b/linux-cachyos-rc/PKGBUILD@@ -311,7 +311,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -340,8 +340,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-server/PKGBUILD b/linux-cachyos-server/PKGBUILDindex 98185a63..96e6e4b4 100644--- a/linux-cachyos-server/PKGBUILD+++ b/linux-cachyos-server/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos-tt/PKGBUILD b/linux-cachyos-tt/PKGBUILDindex e9848fe5..24bee43e 100644--- a/linux-cachyos-tt/PKGBUILD+++ b/linux-cachyos-tt/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-cachyos/PKGBUILD b/linux-cachyos/PKGBUILDindex 1a10758f..28fc81a7 100644--- a/linux-cachyos/PKGBUILD+++ b/linux-cachyos/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; thendiff --git a/linux-tt/PKGBUILD b/linux-tt/PKGBUILDindex 3d113977..2e7a6854 100644--- a/linux-tt/PKGBUILD+++ b/linux-tt/PKGBUILD@@ -308,7 +308,7 @@ prepare() {### Select CPU optimizationif [ -n "$_processor_opt" ]; then- MARCH=$(echo $_processor_opt|tr '[:lower:]' '[:upper:]'&&echo)+ MARCH="${_processor_opt^^}"MARCH2=M${MARCH}scripts/config -k -d CONFIG_GENERIC_CPUscripts/config -k -e CONFIG_${MARCH2}@@ -337,8 +337,7 @@ prepare() {*) _die "The value $_cpusched is invalid. Choose the correct one again.";;esac- local sched_name="$(echo $_cpusched|tr '[:lower:]' '[:upper:]')"- echo "Selecting ${sched_name} CPU scheduler..."+ echo "Selecting ${_cpusched^^} CPU scheduler..."### Enable KCFIif [ -n "$_use_kcfi" ]; then