linux/arch/mips/netlogic
Jayachandran C 8ecd08378c MIPS: Netlogic: Fix plat_irq_dispatch
Fix an issue in plat_irq_dispatch due to which it can call do_IRQ
with a PIC irq that is not mapped.

When a per-cpu interrupt and a PIC interrupt are both active, the
check 'eirr & PERCPU_IRQ_MASK' will be true, but the interrupt in 'i'
will be the number of the PIC interrupt. In this case, we will call
do_IRQ on the PIC interrupt without mapping it with nlm_irq_to_xirq().

Fix this by using __ffs64 instead of __ilog2_u64 and using the
interrupt number instead of mask to identify per-cpu interrupts.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5432/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2013-06-13 17:46:43 +02:00
..
common MIPS: Netlogic: Fix plat_irq_dispatch 2013-06-13 17:46:43 +02:00
dts MIPS: Netlogic: Support for multiple built-in device trees 2013-05-08 01:19:05 +02:00
xlp MIPS: Netlogic: Fixup memory regions for prefetch 2013-06-13 17:46:43 +02:00
xlr MIPS: Netlogic: move cpu_ready array to boot area 2013-06-13 17:46:42 +02:00
Kconfig MIPS: Netlogic: SWIOTLB dma ops for 32-bit DMA 2013-06-13 17:46:40 +02:00
Makefile MIPS: Netlogic: Add support for built in DTB 2012-08-22 23:46:37 +02:00
Platform MIPS: Whitespace cleanup. 2013-02-01 10:00:22 +01:00