Merge pull request #62 from olysonek/epb_unsupported_log_msg
cpu: Don't log error in execute() if EPB is not supported
This commit is contained in:
commit
43c1b819d3
1 changed files with 2 additions and 1 deletions
|
|
@ -60,7 +60,8 @@ class CPULatencyPlugin(base.Plugin):
|
|||
|
||||
def _check_energy_perf_bias(self):
|
||||
self._has_energy_perf_bias = False
|
||||
retcode = self._cmd.execute(["x86_energy_perf_policy", "-r"], no_errors = [errno.ENOENT])[0]
|
||||
retcode_unsupported = 1
|
||||
retcode = self._cmd.execute(["x86_energy_perf_policy", "-r"], no_errors = [errno.ENOENT, retcode_unsupported])[0]
|
||||
if retcode == 0:
|
||||
self._has_energy_perf_bias = True
|
||||
elif retcode < 0:
|
||||
|
|
|
|||
Loading…
Reference in a new issue