pstate:init

fixup pstate
This commit is contained in:
paki23
2022-07-30 18:21:03 +02:00
parent 83009edccc
commit 5e9934fa07
2 changed files with 10 additions and 0 deletions

View 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" ];
};
}