Skip to content

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

linux-cachyos-{autofdo,rc}: Rename `_is_lto_kernel` to _is_clang_kernel`

Eric Naim202ee8a570c7
diff --git a/linux-cachyos-autofdo/PKGBUILD b/linux-cachyos-autofdo/PKGBUILD
index 6dbfd91f..d3b6ded6 100644
--- a/linux-cachyos-autofdo/PKGBUILD
+++ b/linux-cachyos-autofdo/PKGBUILD
@@ -165,7 +165,7 @@ _autofdo_profile_name=${_autofdo_profile_name-"perf.afdo"}
# ATTENTION: Do not modify after this line
-_is_lto_kernel() {
+_is_clang_kernel() {
[[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]
return $?
}
@@ -215,7 +215,7 @@ source=(
"${_patchsource}/all/0001-cachyos-base-all.patch")
# LLVM makedepends
-if _is_lto_kernel; then
+if _is_clang_kernel; then
makedepends+=(clang llvm lld)
source+=("${_patchsource}/misc/dkms-clang.patch")
BUILD_FLAGS=(
diff --git a/linux-cachyos-rc/PKGBUILD b/linux-cachyos-rc/PKGBUILD
index 3f349604..7b8d2691 100644
--- a/linux-cachyos-rc/PKGBUILD
+++ b/linux-cachyos-rc/PKGBUILD
@@ -148,7 +148,7 @@ _build_debug=${_build_debug-}
# ATTENTION: Do not modify after this line
-_is_lto_kernel() {
+_is_clang_kernel() {
[[ "$_use_llvm_lto" = "thin" || "$_use_llvm_lto" = "full" ]] || [ -n "$_use_kcfi" ]
return $?
}
@@ -204,7 +204,7 @@ source=(
"${_patchsource}/all/0001-cachyos-base-all.patch")
# LLVM makedepends
-if _is_lto_kernel; then
+if _is_clang_kernel; then
makedepends+=(clang llvm lld)
source+=("${_patchsource}/misc/dkms-clang.patch")
BUILD_FLAGS=(