]> err.no Git - linux-2.6/commitdiff
[MIPS] BCM1480: Mask pending interrupts against c0_status.im.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 3 Oct 2006 13:42:02 +0000 (14:42 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Oct 2006 16:59:17 +0000 (17:59 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sibyte/bcm1480/irq.c

index a0222fa4416cb62537302e01c4b5ed6a3436d491..a46b75b23ecb1e2ef10f4470279764f23905dacc 100644 (file)
@@ -482,7 +482,7 @@ asmlinkage void plat_irq_dispatch(struct pt_regs *regs)
        write_c0_compare(read_c0_count());
 #endif
 
-       pending = read_c0_cause();
+       pending = read_c0_cause() & read_c0_status();
 
 #ifdef CONFIG_SIBYTE_BCM1480_PROF
        if (pending & CAUSEF_IP7)       /* Cpu performance counter interrupt */