mirror of
https://github.com/xddxdd/nix-cachyos-kernel.git
synced 2026-07-03 19:18: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:**
|
**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`.
|
- **`kcfi`**: Enable Kernel Control Flow Integrity. Default: `false`.
|
||||||
- **`hzTicks`**: Timer frequency. Options: `"1000"` (default), `"250"`, `"300"`, `"500"`, `"750"`, or `null` to disable.
|
- **`hzTicks`**: Timer frequency. Options: `"1000"` (default), `"250"`, `"300"`, `"500"`, `"750"`, or `null` to disable.
|
||||||
- **`performanceGovernor`**: Enable performance governor. Default: `false`.
|
- **`performanceGovernor`**: Enable performance governor. Default: `false`.
|
||||||
|
|||||||
@ -231,14 +231,14 @@ builtins.listToAttrs (
|
|||||||
inherit (linuxSources.latest) version src;
|
inherit (linuxSources.latest) version src;
|
||||||
configVariant = "linux-cachyos-rt-bore";
|
configVariant = "linux-cachyos-rt-bore";
|
||||||
rt = true;
|
rt = true;
|
||||||
cpusched = "bore";
|
cpusched = "rt-bore";
|
||||||
})
|
})
|
||||||
(mkCachyKernel {
|
(mkCachyKernel {
|
||||||
pname = "linux-cachyos-rt-bore-lto";
|
pname = "linux-cachyos-rt-bore-lto";
|
||||||
inherit (linuxSources.latest) version src;
|
inherit (linuxSources.latest) version src;
|
||||||
configVariant = "linux-cachyos-rt-bore";
|
configVariant = "linux-cachyos-rt-bore";
|
||||||
rt = true;
|
rt = true;
|
||||||
cpusched = "bore";
|
cpusched = "rt-bore";
|
||||||
lto = "thin";
|
lto = "thin";
|
||||||
})
|
})
|
||||||
(mkCachyKernel {
|
(mkCachyKernel {
|
||||||
|
|||||||
@ -70,6 +70,8 @@ lib.makeOverridable (
|
|||||||
|
|
||||||
# AutoFDO requires Clang compiler
|
# AutoFDO requires Clang compiler
|
||||||
assert autofdo != false -> lto != "none";
|
assert autofdo != false -> lto != "none";
|
||||||
|
# rt/rt-bore cpusched requires realtime patchset
|
||||||
|
assert cpusched == "rt" || cpusched == "rt-bore" -> rt;
|
||||||
|
|
||||||
let
|
let
|
||||||
helpers = callPackage ../helpers.nix { };
|
helpers = callPackage ../helpers.nix { };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user