base-files: diag does not need to insmod any drivers, procd already did it for us
[openwrt.git] / target / linux / brcm63xx / patches-3.9 / 311-MIPS-BCM63XX-Handle-SW-IRQs-0-1.patch
1 From 8e0bd819cc0f8815cad99feea98664172c0b1fe4 Mon Sep 17 00:00:00 2001
2 From: Kevin Cernekee <cernekee@gmail.com>
3 Date: Mon, 31 Oct 2011 11:52:10 -0700
4 Subject: [PATCH 02/13] MIPS: BCM63XX: Handle SW IRQs 0-1
5
6 MIPS software IRQs 0 and 1 are used for interprocessor signaling (IPI)
7 on BMIPS SMP.  Make the board support code aware of them.
8
9 Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
10 [jogo@openwrt.org: move sw irqs behind timer irq]
11 Signed-off-by: Jonas Gorski <jogo@openwrt.org>
12 ---
13  arch/mips/bcm63xx/irq.c |    4 ++++
14  1 file changed, 4 insertions(+)
15
16 --- a/arch/mips/bcm63xx/irq.c
17 +++ b/arch/mips/bcm63xx/irq.c
18 @@ -294,6 +294,10 @@ asmlinkage void plat_irq_dispatch(void)
19  
20                 if (cause & CAUSEF_IP7)
21                         do_IRQ(7);
22 +               if (cause & CAUSEF_IP0)
23 +                       do_IRQ(0);
24 +               if (cause & CAUSEF_IP1)
25 +                       do_IRQ(1);
26                 if (cause & CAUSEF_IP2)
27                         dispatch_internal();
28                 if (!is_ext_irq_cascaded) {