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" ];
|
after = [ "systemd-modules-load.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ cpupower ];
|
path = [ cpupower ];
|
||||||
script = ''
|
|
||||||
cpupower frequency-set -g ${cfg.cpuFreqGovernor}
|
|
||||||
'';
|
|
||||||
unitConfig.ConditionVirtualization = false;
|
unitConfig.ConditionVirtualization = false;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
|
ExecStart = "${cpupower}/bin/cpupower frequency-set -g ${cfg.cpuFreqGovernor}";
|
||||||
|
SuccessExitStatus = "0 237";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user