pstate:init
fixup pstate
This commit is contained in:
parent
83009edccc
commit
5e9934fa07
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;
|
||||
|
||||
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-cpu-only = import ./common/cpu/intel/cpu-only.nix;
|
||||
common-cpu-intel-kaby-lake = import ./common/cpu/intel/kaby-lake;
|
||||
|
|
Loading…
Reference in a new issue