1
0
Fork 0

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:
Pavol Žáčik 2024-08-22 14:30:28 +02:00
parent c082797fd0
commit 3e98b30178
No known key found for this signature in database
GPG key ID: B99527D5E6487A92

View file

@ -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)