]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
genirq: Provide irq_fixup_move_pending()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Jun 2017 23:37:19 +0000 (01:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:21:13 +0000 (18:21 +0200)
commitcdd16365b0bd7c0cd19e2cc768b6bdc8021f32c3
tree3f64719fa46b4edc5077b0342cf625954eaeb52f
parent1bb0401680da156ce1549e915e711bf5b2534cc5
genirq: Provide irq_fixup_move_pending()

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.

Implement a helper function which allows to avoid these issues.

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.691345468@linutronix.de
include/linux/irq.h
kernel/irq/migration.c