mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2025-11-03 08:47:13 +08:00
pstate:init
fixup pstate
This commit is contained in:
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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user