Commit 3534d7da authored by Ondřej Lysoněk's avatar Ondřej Lysoněk

scheduler: Restore IRQ affinity only if setting it succeeded

Resolves: rhbz#1590937
Signed-off-by: default avatarOndřej Lysoněk <>
parent 97553260
......@@ -580,9 +580,10 @@ class SchedulerPlugin(base.Plugin):
except KeyError:
_affinity = self._get_intersect_affinity(prev_affinity, affinity, affinity)
if set(_affinity) != set(prev_affinity):
affinity_hex = self._cmd.cpulist2hex(_affinity)
self._set_irq_affinity(irq, affinity_hex)
if set(_affinity) == set(prev_affinity):
affinity_hex = self._cmd.cpulist2hex(_affinity)
if self._set_irq_affinity(irq, affinity_hex):
irq_original.irqs[irq] = prev_affinity
# default affinity
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment