diff options
author | K900 <me@0upti.me> | 2023-05-18 16:30:49 +0300 |
---|---|---|
committer | K900 <me@0upti.me> | 2023-05-18 16:30:49 +0300 |
commit | 26db9b9527c29f0945af0e613845680c140e9ee1 (patch) | |
tree | 228f66094850fbc5f268ec4e79842684899754f8 /pkgs/os-specific/linux | |
parent | 7baa535b0f07c0a475032abdfffa5b36e4458b69 (diff) | |
download | nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar.gz nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar.bz2 nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar.lz nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar.xz nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.tar.zst nixpkgs-26db9b9527c29f0945af0e613845680c140e9ee1.zip |
linux/common-config: fix i686
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 356b794039e..44997740aea 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -80,7 +80,10 @@ let # Enable lazy RCUs for power savings: # https://lore.kernel.org/rcu/20221019225138.GA2499943@paulmck-ThinkPad-P17-Gen-1/ - RCU_LAZY = whenAtLeast "6.2" yes; + # RCU_LAZY depends on RCU_NOCB_CPU depends on NO_HZ_FULL + # depends on HAVE_VIRT_CPU_ACCOUNTING_GEN depends on 64BIT, + # so we can't force-enable this + RCU_LAZY = whenAtLeast "6.2" (option yes); } // optionalAttrs (stdenv.hostPlatform.isx86) { INTEL_IDLE = yes; INTEL_RAPL = whenAtLeast "5.3" module; @@ -128,7 +131,8 @@ let timer = { # Enable Full Dynticks System. - NO_HZ_FULL = mkIf stdenv.is64bit yes; # TODO: more precise condition? + # NO_HZ_FULL depends on HAVE_VIRT_CPU_ACCOUNTING_GEN depends on 64BIT + NO_HZ_FULL = mkIf stdenv.is64bit yes; }; # Enable NUMA. |