]> git.baikalelectronics.ru Git - kernel.git/commit
genirq/cpuhotplug: Reorder check logic
authorThomas Gleixner <tglx@linutronix.de>
Mon, 19 Jun 2017 23:37:27 +0000 (01:37 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 22 Jun 2017 16:21:16 +0000 (18:21 +0200)
commitd6175060339a7be7f42b6e7d766c038d4da0e59e
tree18d42cbf81c3b2b6fa16ca23c8704805630e47b5
parent344cbceb0a47aaa2924f0308b3bc43c197b4140e
genirq/cpuhotplug: Reorder check logic

Move the checks for a valid irq chip and the irq_set_affinity() callback
right in front of the whole migration logic. No point in doing a gazillion
of other things when the interrupt cannot be migrated at all.

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/20170619235445.354181630@linutronix.de
kernel/irq/cpuhotplug.c