powerpc/mpic: Fix irq distribution problem when MPIC_SINGLE_DEST_CPU
authorchenhui zhao <chenhui.zhao@freescale.com>
Mon, 27 May 2013 21:59:43 +0000 (21:59 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 31 May 2013 22:29:24 +0000 (08:29 +1000)
commite242114afff0a41550e174cd787cdbafd34625de
tree5dc04865bd28f94e54a79a47a37a6186bd734fe1
parent2b3f8e87cf99a33fb6faf5026d7147748bbd77b6
powerpc/mpic: Fix irq distribution problem when MPIC_SINGLE_DEST_CPU

For the mpic with a flag MPIC_SINGLE_DEST_CPU, only one bit should be
set in interrupt destination registers.

The code is applicable to 64-bit platforms as well as 32-bit.

Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/sysdev/mpic.c