diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-06-20 02:37:20 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-06-22 19:21:13 +0300 |
commit | 8e7b632237df8b17526411d1d98f838580bb6aa3 (patch) | |
tree | 6f2b4b78b13dcd94c62f45c415bea92751240dcf /kernel/irq/proc.c | |
parent | cdd16365b0bd7c0cd19e2cc768b6bdc8021f32c3 (diff) | |
download | linux-8e7b632237df8b17526411d1d98f838580bb6aa3.tar.xz |
x86/irq: Cleanup pending irq move in fixup_irqs()
If an CPU goes offline, the interrupts are migrated away, but a eventually
pending interrupt move, which has not yet been made effective is kept
pending even if the outgoing CPU is the sole target of the pending affinity
mask. What's worse is, that the pending affinity mask is discarded even if
it would contain a valid subset of the online CPUs.
Use the newly introduced helper to:
- Discard a pending move when the outgoing CPU is the only target in the
pending mask.
- Use the pending mask instead of the affinity mask to find a valid target
for the CPU if the pending mask intersects with the online CPUs.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Keith Busch <keith.busch@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/20170619235444.774068557@linutronix.de
Diffstat (limited to 'kernel/irq/proc.c')
0 files changed, 0 insertions, 0 deletions