summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2023-05-17 11:34:58 -0400
committerGitHub <noreply@github.com>2023-05-17 11:34:58 -0400
commit26e7d76c4996aad61b14cc8041199fd815ace7ab (patch)
treed4fb7fd52e0807f5dc105c291e7a8965f5d497fc /pkgs/os-specific/linux/kernel/common-config.nix
parent6e4fbfe81a9471cf83d09a3d411d465ed2158546 (diff)
parentd6db303160000efbd402e2910accedef648872e6 (diff)
downloadnixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar.gz
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar.bz2
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar.lz
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar.xz
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.tar.zst
nixpkgs-26e7d76c4996aad61b14cc8041199fd815ace7ab.zip
Merge pull request #232262 from K900/dont-say-lazy
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 6b1a7d127a9..356b794039e 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -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;