1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-27 12:09:45 +01:00

pstate:init

fixup pstate
This commit is contained in:
paki23 2022-07-30 18:21:03 +02:00
parent 83009edccc
commit 5e9934fa07
No known key found for this signature in database
GPG key ID: 13160FFB4CEB03F2
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" ];
};
}

View file

@ -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;