Skip to content

Archlinux Kernel based on different schedulers and some other performance improvements.

linux-cachyos-rc: Swtich to Thin LTO as default to follow default kernel

Peter Jung1f8a79ffeac6
diff --git a/linux-cachyos-rc/.SRCINFO b/linux-cachyos-rc/.SRCINFO
index 396db93a..53009244 100644
--- a/linux-cachyos-rc/.SRCINFO
+++ b/linux-cachyos-rc/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by makepkg 7.1.0
-# Mon Feb 2 06:40:07 UTC 2026
pkgbase = linux-cachyos-rc
pkgdesc = Linux BORE + LTO + AutoFDO + Propeller + Cachy Sauce Kernel by CachyOS with other patches and improvements - Release Candidate
pkgver = 6.19.rc8
@@ -20,12 +18,16 @@ pkgbase = linux-cachyos-rc
makedepends = tar
makedepends = xz
makedepends = zstd
+ makedepends = clang
+ makedepends = llvm
+ makedepends = lld
options = !strip
options = !debug
options = !lto
source = https://github.com/torvalds/linux/archive/refs/tags/v6.19-rc8.tar.gz
source = config
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.19/all/0001-cachyos-base-all.patch
+ source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.19/misc/dkms-clang.patch
source = https://raw.githubusercontent.com/cachyos/kernel-patches/master/6.19/sched/0001-bore-cachy.patch
b2sums = 2c7ae476c66a4bf7df5175f548b091c786f00e06f4745dce657d4c417d9fb92625a8e022b4e62c99bd5d435b2eef1b040ea23963439cab5a95e0063aa92a916f
b2sums = 823b738621a81fa74ed94795004c19ca9e3a17c77ba18f7d83ac3801c2688725c3d8576c83cee99d42e178b95f54c8b4932b321cb15c8209ea965d914600b488
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 31f28457..5e8d91fc 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -87,18 +87,17 @@
# "thin: uses multiple threads, faster and uses less memory, may have a lower runtime performance than Full."
# "thin-dist: Similar to thin, but uses a distributed model rather than in-process: https://discourse.llvm.org/t/rfc-distributed-thinlto-build-for-kernel/85934"
# "none: disable LTO
-: "${_use_llvm_lto:=none}"
+: "${_use_llvm_lto:=thin}"
# Use suffix -lto only when requested by the user
-# Enabled by default.
# yes - enable -lto suffix
# no - disable -lto suffix
# https://github.com/CachyOS/linux-cachyos/issues/36
-: "${_use_lto_suffix:=yes}"
+: "${_use_lto_suffix:=no}"
# Use suffix -gcc when requested by the user
-# This was added to facilitate https://github.com/CachyOS/linux-cachyos/issues/286
-: "${_use_gcc_suffix:=no}"
+# Enabled by default to show the difference between LTO kernels and GCC kernels
+: "${_use_gcc_suffix:=yes}"
# KCFI is a proposed forward-edge control-flow integrity scheme for
# Clang, which is more suitable for kernel use than the existing CFI
@@ -157,7 +156,7 @@ _is_ci_build() {
return $?
}
-if _is_lto_kernel && [ "$_use_lto_suffix" = "yes" ]; then
+if _is_lto_kernel && [ "$_use_lto_suffix" = "yes" ]; then
_pkgsuffix="cachyos-rc-lto"
elif ! _is_lto_kernel && [ "$_use_gcc_suffix" = "yes" ]; then
_pkgsuffix="cachyos-rc-gcc"