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.
This commit is contained in:
Michael Peyton Jones 2019-08-22 11:23:37 +01:00
parent 1412af4b2c
commit 299e6f07d2
No known key found for this signature in database
GPG key ID: 86A43C24A728F66D

View file

@ -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 = {