From 3286b7ecf1d864e2be050af78aa633d4e3ae8fdb Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Tue, 17 Mar 2026 20:36:35 -0700 Subject: [PATCH] Properly enable PREEMPT_RT for rt-bore variant by setting correct CPU scheduler --- README.md | 2 +- kernel-cachyos/default.nix | 4 ++-- kernel-cachyos/mkCachyKernel.nix | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d1a4c8a..0dd0f5b 100644 --- a/README.md +++ b/README.md @@ -297,7 +297,7 @@ The following arguments can be passed to `mkCachyKernel`: **CachyOS Fine Tuning Settings:** -- **`cpusched`**: CPU scheduler. Options: `"eevdf"` (default), `"bore"`, `"bmq"`, `"hardened"`, `"rt"`, `"rt-bore"` or `null` to disable. +- **`cpusched`**: CPU scheduler. Options: `"eevdf"` (default), `"bore"`, `"bmq"`, `"rt"`, `"rt-bore"` or `null` to disable. - **`kcfi`**: Enable Kernel Control Flow Integrity. Default: `false`. - **`hzTicks`**: Timer frequency. Options: `"1000"` (default), `"250"`, `"300"`, `"500"`, `"750"`, or `null` to disable. - **`performanceGovernor`**: Enable performance governor. Default: `false`. diff --git a/kernel-cachyos/default.nix b/kernel-cachyos/default.nix index 810bffa..9fbeaa1 100644 --- a/kernel-cachyos/default.nix +++ b/kernel-cachyos/default.nix @@ -231,14 +231,14 @@ builtins.listToAttrs ( inherit (linuxSources.latest) version src; configVariant = "linux-cachyos-rt-bore"; rt = true; - cpusched = "bore"; + cpusched = "rt-bore"; }) (mkCachyKernel { pname = "linux-cachyos-rt-bore-lto"; inherit (linuxSources.latest) version src; configVariant = "linux-cachyos-rt-bore"; rt = true; - cpusched = "bore"; + cpusched = "rt-bore"; lto = "thin"; }) (mkCachyKernel { diff --git a/kernel-cachyos/mkCachyKernel.nix b/kernel-cachyos/mkCachyKernel.nix index cf2b6a9..4760cc9 100644 --- a/kernel-cachyos/mkCachyKernel.nix +++ b/kernel-cachyos/mkCachyKernel.nix @@ -70,6 +70,8 @@ lib.makeOverridable ( # AutoFDO requires Clang compiler assert autofdo != false -> lto != "none"; + # rt/rt-bore cpusched requires realtime patchset + assert cpusched == "rt" || cpusched == "rt-bore" -> rt; let helpers = callPackage ../helpers.nix { };