Merge pull request #1923 from a-fritsch/raspberry-pi/kernel-preempt-fix
raspberry-pi/common/kernel: fix preempt config on kernel >=6.18
This commit is contained in:
commit
b6f52e2b2c
1 changed files with 9 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue