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

scheduler: Set IRQ affinity only if current affinity is different

Resolves: rhbz#1590937
Signed-off-by: default avatarOndřej Lysoněk <olysonek@redhat.com>
parent 98254efa
......@@ -580,9 +580,10 @@ class SchedulerPlugin(base.Plugin):
except KeyError:
continue
_affinity = self._get_intersect_affinity(prev_affinity, affinity, affinity)
affinity_hex = self._cmd.cpulist2hex(_affinity)
self._set_irq_affinity(irq, affinity_hex)
irq_original.irqs[irq] = prev_affinity
if set(_affinity) != set(prev_affinity):
affinity_hex = self._cmd.cpulist2hex(_affinity)
self._set_irq_affinity(irq, affinity_hex)
irq_original.irqs[irq] = prev_affinity
# default affinity
prev_affinity_hex = self._cmd.read_file("/proc/irq/default_smp_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