mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-03 22:43:30 +01:00
raspberry-pi/common/kernel: fix preempt config on kernel >=6.18
This commit is contained in:
1 parent
08018c7217
commit
bbe86a57e5
1 file changed
+9
-2
@@ -72,11 +72,18 @@ in
|
|||||||
NLS_CODEPAGE_437 = lib.mkForce yes;
|
NLS_CODEPAGE_437 = lib.mkForce yes;
|
||||||
FB_SIMPLE = yes;
|
FB_SIMPLE = yes;
|
||||||
}
|
}
|
||||||
# arm64 vendor defconfigs (bcm2711, bcm2712) use full preempt;
|
# nixpkgs defaults to lazy preempt on kernel version >=6.18
|
||||||
# arm32 ones (bcmrpi, bcm2709) use voluntary preempt (nixpkgs default)
|
# arm64 vendor defconfigs (bcm2711, bcm2712) use full preempt
|
||||||
// lib.optionalAttrs (rpiVersion >= 3) {
|
// lib.optionalAttrs (rpiVersion >= 3) {
|
||||||
PREEMPT = lib.mkForce yes;
|
PREEMPT = lib.mkForce yes;
|
||||||
|
PREEMPT_LAZY = lib.mkForce no;
|
||||||
PREEMPT_VOLUNTARY = lib.mkForce no;
|
PREEMPT_VOLUNTARY = lib.mkForce no;
|
||||||
|
}
|
||||||
|
# arm32 ones (bcmrpi, bcm2709) use voluntary preempt
|
||||||
|
// lib.optionalAttrs (rpiVersion < 3) {
|
||||||
|
PREEMPT = lib.mkForce no;
|
||||||
|
PREEMPT_LAZY = lib.mkForce no;
|
||||||
|
PREEMPT_VOLUNTARY = lib.mkForce yes;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraMeta =
|
extraMeta =
|
||||||
|
|||||||
Reference in new issue
Block a user