Skip to content

Commit

Permalink
Merge pull request #658 from adriaan42/adriaan/fix-irq-variable-expand
Browse files Browse the repository at this point in the history
fix: expand variables in plugin_irq
  • Loading branch information
yarda authored Jul 24, 2024
2 parents cff5e91 + 18a95d0 commit e547fef
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 e547fef

Please sign in to comment.