x86/apic/vector: Ignore set_affinity call for inactive interrupts
authorThomas Gleixner <tglx@linutronix.de>
Thu, 12 Oct 2017 09:05:28 +0000 (11:05 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 12 Oct 2017 10:58:15 +0000 (12:58 +0200)
commit02edee152d6ea325c88898f3a702f5db2d78de7a
treeb11aad3c4af3d1519fec6a23a94b5993e3753736
parent331b57d14829c49d75076779cdc54d7e4537bbf0
x86/apic/vector: Ignore set_affinity call for inactive interrupts

The core interrupt code can call the affinity setter for inactive
interrupts under certain circumstances.

For inactive intererupts which use managed or reservation mode this is a
pointless exercise as the activation will assign a vector which fits the
destination mask.

Check for this and return w/o going through the vector assignment.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/apic/vector.c