Merge pull request #102106 from tadfisher/throttled-msr-warning

nixos/throttled: disable kernel msr warning
This commit is contained in:
Florian Klink 2020-12-29 01:28:09 +01:00 committed by GitHub
commit 316862f72b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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