]> git.baikalelectronics.ru Git - kernel.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)
commit4943ba6380aa1da17b16ee74501e82ccbaf85221
tree3f64719fa46b4edc5077b0342cf625954eaeb52f
parent2570b67c02686783d2de6f36276a45b3e9de1434
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