mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-30 06:49:43 +01:00
pstate:init
fixup pstate
This commit is contained in:
parent
83009edccc
commit
5e9934fa07
2 changed files with 10 additions and 0 deletions
9
common/cpu/amd/pstate.nix
Normal file
9
common/cpu/amd/pstate.nix
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{ lib, config, ... }: {
|
||||||
|
#Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html
|
||||||
|
|
||||||
|
imports = [ ./. ];
|
||||||
|
boot = lib.mkIf (!lib.versionOlder config.boot.kernelPackages.kernel.version "5.17") {
|
||||||
|
kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ];
|
||||||
|
kernelModules = [ "amd-pstate" ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -131,6 +131,7 @@
|
||||||
tuxedo-infinitybook-v4 = import ./tuxedo/infinitybook/v4;
|
tuxedo-infinitybook-v4 = import ./tuxedo/infinitybook/v4;
|
||||||
|
|
||||||
common-cpu-amd = import ./common/cpu/amd;
|
common-cpu-amd = import ./common/cpu/amd;
|
||||||
|
common-cpu-amd-pstate = import ./common/cpu/amd/pstate.nix;
|
||||||
common-cpu-intel = import ./common/cpu/intel;
|
common-cpu-intel = import ./common/cpu/intel;
|
||||||
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
|
common-cpu-intel-cpu-only = import ./common/cpu/intel/cpu-only.nix;
|
||||||
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
|
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
|
||||||
|
|
Loading…
Reference in a new issue