]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip: xtensa: Select only an online cpu
authorThomas Gleixner <tglx@linutronix.de>
Tue, 4 Mar 2014 14:19:16 +0000 (15:19 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 4 Mar 2014 16:37:55 +0000 (17:37 +0100)
commit6dbe4c6f5a2eda44bef8a9b399d5c0c58a54a998
tree31472b882b476598f9d79bebf44da818856c8687
parent0f6b484892cbb541e7e5b2d4d29876de7393f759
irqchip: xtensa: Select only an online cpu

The user space interface does not filter out offline cpus. It merily
verifies that the mask contains at least one online cpu. So the
selector in the irq chip implementation needs to make sure to pick
only an online cpu because otherwise:

     Offline Core 1
     Set affinity to 0xe
     Selector will pick first set bit, i.e. core 1

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Chris Zankel <chris@zankel.net>
Cc: xtensa <linux-xtensa@linux-xtensa.org>
drivers/irqchip/irq-xtensa-mx.c