forked from mirrors/nixpkgs
cpufreq: Don't fail if the CPU doesn't support frequency setting
This commit is contained in:
parent
685ca50650
commit
f5cd4eef11
|
@ -41,13 +41,12 @@ in
|
|||
after = [ "systemd-modules-load.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ cpupower ];
|
||||
script = ''
|
||||
cpupower frequency-set -g ${cfg.cpuFreqGovernor}
|
||||
'';
|
||||
unitConfig.ConditionVirtualization = false;
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = "yes";
|
||||
ExecStart = "${cpupower}/bin/cpupower frequency-set -g ${cfg.cpuFreqGovernor}";
|
||||
SuccessExitStatus = "0 237";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue