cpufreq: Don't fail if the CPU doesn't support frequency setting

This commit is contained in:
Eelco Dolstra 2014-04-28 19:13:04 +02:00
parent 685ca50650
commit f5cd4eef11

View File

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