瀏覽代碼

[MIPS] BCM1480: Mask pending interrupts against c0_status.im.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Ralf Baechle 19 年之前
父節點
當前提交
34c2dd01fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/mips/sibyte/bcm1480/irq.c

+ 1 - 1
arch/mips/sibyte/bcm1480/irq.c

@@ -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 */