Properly enable PREEMPT_RT for rt-bore variant by setting correct CPU scheduler

This commit is contained in:
Lan Tian 2026-03-17 20:36:35 -07:00
parent 6d785e4870
commit 3286b7ecf1
No known key found for this signature in database
GPG Key ID: 04E66B6B25A0862B
3 changed files with 5 additions and 3 deletions

View File

@ -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`.

View File

@ -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 {

View File

@ -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 { };