diff options
author | Michael Peyton Jones <me@michaelpj.com> | 2019-08-22 11:23:37 +0100 |
---|---|---|
committer | Michael Peyton Jones <me@michaelpj.com> | 2019-08-22 18:11:50 +0100 |
commit | 299e6f07d2fde9f01bd9d8fa22c464739b769ee1 (patch) | |
tree | a20397d6a06296a82c1f59537df6852349143573 /pkgs/os-specific/linux/kernel/common-config.nix | |
parent | 1412af4b2cfae71d447164097d960d426e9752c0 (diff) | |
download | nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar.gz nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar.bz2 nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar.lz nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar.xz nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.tar.zst nixpkgs-299e6f07d2fde9f01bd9d8fa22c464739b769ee1.zip |
kernel: set POWERCAP and INTEL_RAPL
These enable some power management settings. They are needed for [s-tui to show power readings](https://github.com/amanusk/s-tui/issues/105). The values chosen here match what Arch Linux has. In particular the Intel specific code is loadable as a module rather than compiled in.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index b392dc853d3..730636350ed 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -52,6 +52,9 @@ let CPU_FREQ_DEFAULT_GOV_PERFORMANCE = yes; CPU_FREQ_GOV_SCHEDUTIL = whenAtLeast "4.9" yes; PM_WAKELOCKS = yes; + # Power-capping framework and support for INTEL RAPL + POWERCAP = yes; + INTEL_RAPL = module; }; external-firmware = { |