powerpc: Fix irq distribution
authorKim Phillips <kim.phillips@freescale.com>
Thu, 17 May 2012 15:11:45 +0000 (15:11 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 May 2012 04:38:26 +0000 (14:38 +1000)
commit2074b1d9d53ae696dd3f49482bad43254f40f01d
tree8e1ac0d5264e0d5cbdadcec5989dd4c258ea90b0
parent6749ef0b8b1f8aa72cc93c874edef39f4c0533ba
powerpc: Fix irq distribution

setting CONFIG_IRQ_ALL_CPUS distributes IRQs to CPUs only when
the number of online CPUs equals NR_CPUS.  See commit
280ff97494e0fef4124bee5c52e39b23a18dd283 "sparc64: fix and
optimize irq distribution" for more details.

Using the online mask fixes IRQ-to-CPU distribution on systems
that boot with less than NR_CPUS.

Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/irq.c