Skip to content

Commit

Permalink
fix: expand variables in plugin_irq
Browse files Browse the repository at this point in the history
Signed-off-by: Adriaan Schmidt <[email protected]>
  • Loading branch information
adriaan42 committed Jul 9, 2024
1 parent 5d5dbfc commit 18a95d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tuned/plugins/plugin_irq.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _instance_init(self, instance):
instance._has_static_tuning = True
instance._has_dynamic_tuning = False

affinity = instance.options.get("affinity")
affinity = self._variables.expand(instance.options.get("affinity"))
affinity_list = self._cmd.cpulist_unpack(affinity)
if len(affinity.strip()) == 0:
# empty affinity in profile -> assume it's intentional
Expand All @@ -105,7 +105,7 @@ def _instance_init(self, instance):
log.error("Instance '%s' with invalid affinity '%s'. Deactivating." % (instance.name, affinity))
instance._active = False

mode = instance.options.get("mode")
mode = self._variables.expand(instance.options.get("mode"))
if mode not in ["set", "intersect"]:
log.error("Invalid operating mode '%s' for instance '%s'. Using the default 'set' instead."
% (mode, instance.name))
Expand Down

0 comments on commit 18a95d0

Please sign in to comment.