]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite8a7035039306c90bcc99129ffc18e0be052bbb9
tree18d42cbf81c3b2b6fa16ca23c8704805630e47b5
parent735c09524d3e7c92315e8e2699a1b9acb4fb415c
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