diff options
author | Tad Fisher <tadfisher@gmail.com> | 2020-10-29 15:02:33 -0700 |
---|---|---|
committer | Tad Fisher <tadfisher@gmail.com> | 2020-10-29 15:04:18 -0700 |
commit | e07f4d6795413d98a2b871d5a8e03d6a9bd16e0f (patch) | |
tree | d46bd9103a34e720bae53fdacbedf70b75af59cb | |
parent | 502845c3e31ef3de0e424f3fcb09217df2ce6df6 (diff) |
nixos/throttled: disable kernel msr warning
-rw-r--r-- | nixos/modules/services/hardware/throttled.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/services/hardware/throttled.nix b/nixos/modules/services/hardware/throttled.nix index 7617c4492d7c..1905eb565c6d 100644 --- a/nixos/modules/services/hardware/throttled.nix +++ b/nixos/modules/services/hardware/throttled.nix @@ -26,5 +26,11 @@ in { if cfg.extraConfig != "" then pkgs.writeText "lenovo_fix.conf" cfg.extraConfig else "${pkgs.throttled}/etc/lenovo_fix.conf"; + + # Kernel 5.9 spams warnings whenever userspace writes to CPU MSRs. + # See https://github.com/erpalma/throttled/issues/215 + boot.kernelParams = + optional (versionAtLeast config.boot.kernelPackages.kernel.version "5.9") + "msr.allow_writes=on"; }; } |