Skip to content

Commit

Permalink
Merge pull request #62 from olysonek/epb_unsupported_log_msg
Browse files Browse the repository at this point in the history
cpu: Don't log error in execute() if EPB is not supported
  • Loading branch information
yarda committed Aug 21, 2017
2 parents 2c3d966 + acc1427 commit 43c1b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tuned/plugins/plugin_cpu.py
Expand Up @@ -60,7 +60,8 @@ def _get_config_options(self):

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:
Expand Down

0 comments on commit 43c1b81

Please sign in to comment.