From 68a27c2b00fd6e4ed23b7093c226ef604fdf4f0f Mon Sep 17 00:00:00 2001 From: pasqui23 Date: Mon, 1 Aug 2022 12:03:29 +0200 Subject: [PATCH] Clarify kernel version condition Co-authored-by: Sandro --- common/cpu/amd/pstate.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/cpu/amd/pstate.nix b/common/cpu/amd/pstate.nix index 62c88f0..efd01f1 100644 --- a/common/cpu/amd/pstate.nix +++ b/common/cpu/amd/pstate.nix @@ -1,9 +1,9 @@ { lib, config, ... }: { - #Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html - #On recent AMD cupus this can be more energy efficient + # Enables the amd cpu scaling https://www.kernel.org/doc/html/latest/admin-guide/pm/amd-pstate.html + # On recent AMD cupus this can be more energy efficient imports = [ ./. ]; - boot = lib.mkIf (!lib.versionOlder config.boot.kernelPackages.kernel.version "5.17") { + boot = lib.mkIf (lib.versionAtLeast config.boot.kernelPackages.kernel.version "5.17") { kernelParams = [ "initcall_blacklist=acpi_cpufreq_init" ]; kernelModules = [ "amd-pstate" ]; };