Parse no_turbo cpu plugin option using commands.get_bool
The no_turbo knob only recognizes 0 or 1, so we have to convert the option value defined in the profile to an integer if necessary. Related: #630 Resolves: RHEL-51760
This commit is contained in:
parent
c082797fd0
commit
3e98b30178
1 changed files with 2 additions and 2 deletions
|
|
@ -397,8 +397,8 @@ class CPULatencyPlugin(hotplug.Plugin):
|
|||
instance.options["max_perf_pct"])
|
||||
self._max_perf_pct_save = self._getset_intel_pstate_attr(
|
||||
"max_perf_pct", new_value)
|
||||
new_value = self._variables.expand(
|
||||
instance.options["no_turbo"])
|
||||
new_value = self._cmd.get_bool(self._variables.expand(
|
||||
instance.options["no_turbo"]))
|
||||
self._no_turbo_save = self._getset_intel_pstate_attr(
|
||||
"no_turbo", new_value)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue