mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 11:08:07 +02:00
Properly enable PREEMPT_RT for rt-bore variant by setting correct CPU scheduler
This commit is contained in:
parent
6d785e4870
commit
3286b7ecf1
@ -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`.
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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 { };
|
||||
|
||||
Loading…
Reference in New Issue
Block a user