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:
parent
1412af4b2c
commit
299e6f07d2
@ -52,6 +52,9 @@ let
|
|||||||
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = yes;
|
CPU_FREQ_DEFAULT_GOV_PERFORMANCE = yes;
|
||||||
CPU_FREQ_GOV_SCHEDUTIL = whenAtLeast "4.9" yes;
|
CPU_FREQ_GOV_SCHEDUTIL = whenAtLeast "4.9" yes;
|
||||||
PM_WAKELOCKS = yes;
|
PM_WAKELOCKS = yes;
|
||||||
|
# Power-capping framework and support for INTEL RAPL
|
||||||
|
POWERCAP = yes;
|
||||||
|
INTEL_RAPL = module;
|
||||||
};
|
};
|
||||||
|
|
||||||
external-firmware = {
|
external-firmware = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user