From 299e6f07d2fde9f01bd9d8fa22c464739b769ee1 Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Thu, 22 Aug 2019 11:23:37 +0100 Subject: 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. --- pkgs/os-specific/linux/kernel/common-config.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs') 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 = { -- cgit v1.2.3