raspberry-pi/common/kernel: fix preempt config on kernel >=6.18

This commit is contained in:
Alexander Fritsch 2026-06-19 14:59:11 +02:00
parent 08018c7217
commit bbe86a57e5

View file

@ -72,11 +72,18 @@ in
NLS_CODEPAGE_437 = lib.mkForce yes;
FB_SIMPLE = yes;
}
# arm64 vendor defconfigs (bcm2711, bcm2712) use full preempt;
# arm32 ones (bcmrpi, bcm2709) use voluntary preempt (nixpkgs default)
# nixpkgs defaults to lazy preempt on kernel version >=6.18
# arm64 vendor defconfigs (bcm2711, bcm2712) use full preempt
// lib.optionalAttrs (rpiVersion >= 3) {
PREEMPT = lib.mkForce yes;
PREEMPT_LAZY = 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 =