summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/irq-gic.c
diff options
context:
space:
mode:
authorTim Anderson <tanderson@mvista.com>2009-06-18 01:22:25 +0200
committerRalf Baechle <ralf@linux-mips.org>2009-07-03 16:45:26 +0200
commita214cef9a5d06894785dca1f967c9c324cc84c17 (patch)
tree9cad1695afea9987ea979f59a614f39ef2ea8ada /arch/mips/kernel/irq-gic.c
parentMIPS: CMP: Extend the GIC IPI interrupts beyond 32 (diff)
downloadlinux-a214cef9a5d06894785dca1f967c9c324cc84c17.tar.xz
linux-a214cef9a5d06894785dca1f967c9c324cc84c17.zip
MIPS: CMP: Extend IPI handling to CPU number
This takes the current IPI interrupt assignment from the fix number of 4 to the number of CPUs defined in the system. Signed-off-by: Tim Anderson <tanderson@mvista.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/irq-gic.c')
-rw-r--r--arch/mips/kernel/irq-gic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/kernel/irq-gic.c b/arch/mips/kernel/irq-gic.c
index 5c85e1ce0499..d2072cd38592 100644
--- a/arch/mips/kernel/irq-gic.c
+++ b/arch/mips/kernel/irq-gic.c
@@ -247,6 +247,10 @@ static void __init gic_basic_init(void)
if (cpu == X)
continue;
+ if (cpu == 0 && i != 0 && _intrmap[i].intrnum == 0 &&
+ _intrmap[i].ipiflag == 0)
+ continue;
+
setup_intr(_intrmap[i].intrnum,
_intrmap[i].cpunum,
_intrmap[i].pin,