summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorFabián Heredia Montiel <fabianhjr@protonmail.com>2022-03-23 15:42:41 -0600
committerFabián Heredia Montiel <fabianhjr@protonmail.com>2022-03-23 16:24:32 -0600
commitcc8456effe723a6489b6f89fdafa7e877245742d (patch)
treed23a2b2baea764eba041ac6585974245c63cc9da /pkgs/os-specific/linux/kernel/common-config.nix
parentc984213d12225fa5feb640136872da56d2e8f702 (diff)
downloadnixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar.gz
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar.bz2
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar.lz
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar.xz
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.tar.zst
nixpkgs-cc8456effe723a6489b6f89fdafa7e877245742d.zip
linux: common-config condition power-management to required platform
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index ce6123a10f7..2b065151f4a 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -60,16 +60,16 @@ let
     };
 
     power-management = {
-      PM_ADVANCED_DEBUG                = yes;
-      X86_INTEL_LPSS                   = yes;
-      X86_INTEL_PSTATE                 = yes;
-      INTEL_IDLE                       = yes;
       CPU_FREQ_DEFAULT_GOV_PERFORMANCE = yes;
       CPU_FREQ_GOV_SCHEDUTIL           = yes;
+      PM_ADVANCED_DEBUG                = yes;
       PM_WAKELOCKS                     = yes;
-      # Power-capping framework and support for INTEL RAPL
       POWERCAP                         = yes;
+    } // optionalAttrs (stdenv.hostPlatform.isx86) {
+      INTEL_IDLE                       = yes;
       INTEL_RAPL                       = whenAtLeast "5.3" module;
+      X86_INTEL_LPSS                   = yes;
+      X86_INTEL_PSTATE                 = yes;
     };
 
     external-firmware = {