nixos/throttled: disable kernel msr warning
This commit is contained in:
parent
502845c3e3
commit
e07f4d6795
@ -26,5 +26,11 @@ in {
|
|||||||
if cfg.extraConfig != ""
|
if cfg.extraConfig != ""
|
||||||
then pkgs.writeText "lenovo_fix.conf" cfg.extraConfig
|
then pkgs.writeText "lenovo_fix.conf" cfg.extraConfig
|
||||||
else "${pkgs.throttled}/etc/lenovo_fix.conf";
|
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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user