linux: enable RCU_LAZY where supported

Supposed to save some power at idle.
This commit is contained in:
K900 2023-05-16 19:18:58 +03:00
parent c99afe4b0c
commit d6db303160

View File

@ -77,6 +77,10 @@ let
ACPI_APEI = (option yes);
# APEI Generic Hardware Error Source
ACPI_APEI_GHES = (option yes);
# Enable lazy RCUs for power savings:
# https://lore.kernel.org/rcu/20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1/
RCU_LAZY = whenAtLeast "6.2" yes;
} // optionalAttrs (stdenv.hostPlatform.isx86) {
INTEL_IDLE = yes;
INTEL_RAPL = whenAtLeast "5.3" module;