mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Laptop] enable lazy preemption if we are on kernel 6.13+
It reduces power usage by making better use of system resources. It also improves throughput.
This commit is contained in:
parent
eeb148bb21
commit
bb6167236a
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ in {
|
|||
# To save power, batch RCU callbacks and flush after delay, memory pressure or callback list growing too big.
|
||||
"rcutree.enable_rcu_lazy" = "1";
|
||||
|
||||
# Enable lazy preempt by default for kernels newer than 6.13
|
||||
"preempt" = mkIf (config.boot.kernelPackages.kernelAtLeast "6.13") "lazy";
|
||||
|
||||
pcie_aspm = mkIf cfg.tweaks.pcieAspmForce "force";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue