mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 11:50:06 +00:00
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.
(cherry picked from commit 299e6f07d2)
This commit is contained in:
committed by
Martin Weinelt
parent
0e7a9f7370
commit
a347f0fa9c
@@ -54,6 +54,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 = {
|
||||
|
||||
Reference in New Issue
Block a user