OpenCloudOS-Kernel/arch/mips/netlogic/common
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
..
Makefile MIPS: Netlogic: Initialization when !CONFIG_SMP 2013-06-13 17:46:42 +02:00
earlycons.c MIPS: Netlogic: early console fix 2012-07-24 18:24:44 +02:00
irq.c MIPS: Netlogic: Fix plat_irq_dispatch 2013-06-13 17:46:43 +02:00
nlm-dma.c MIPS: Netlogic: SWIOTLB dma ops for 32-bit DMA 2013-06-13 17:46:40 +02:00
reset.S MIPS: Netlogic: Remove workarounds for early SoCs 2013-06-13 17:46:43 +02:00
smp.c MIPS: Netlogic: move cpu_ready array to boot area 2013-06-13 17:46:42 +02:00
smpboot.S MIPS: Netlogic: use branch instead of jump 2013-06-13 17:46:42 +02:00
time.c MIPS: Netlogic: use preset loops per jiffy 2013-02-17 00:15:21 +01:00