mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
nixos/throttled: Use hardware.cpu.x86.msr
This commit is contained in:
parent
a98c933412
commit
b893b67028
@ -29,8 +29,7 @@ in {
|
||||
|
||||
# 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";
|
||||
hardware.cpu.x86.msr.settings.allow-writes =
|
||||
mkIf (versionAtLeast config.boot.kernelPackages.kernel.version "5.9") "on";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user