mips: Use the core irq stats function
authorThomas Gleixner <tglx@linutronix.de>
Sun, 23 Feb 2014 21:40:14 +0000 (21:40 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 4 Mar 2014 16:37:53 +0000 (17:37 +0100)
Let the core do the irq_desc resolution.

No functional change.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: mips <inux-mips@linux-mips.org>
Link: http://lkml.kernel.org/r/20140223212737.517340416@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/mips/kernel/smtc.c
arch/mips/sgi-ip22/ip22-int.c
arch/mips/sgi-ip22/ip22-time.c
arch/mips/sibyte/bcm1480/smp.c
arch/mips/sibyte/sb1250/smp.c

index dfc1b911be04b7480cb30809ba59583cc76598b6..c1681d65dd5c8e580cc26dbf896caa90ad857df9 100644 (file)
@@ -1007,7 +1007,7 @@ static void __irq_entry smtc_clock_tick_interrupt(void)
        int irq = MIPS_CPU_IRQ_BASE + 1;
 
        irq_enter();
-       kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
+       kstat_incr_irq_this_cpu(irq);
        cd = &per_cpu(mips_clockevent_device, cpu);
        cd->event_handler(cd);
        irq_exit();
index 3db64d51798ddb4afd1fd3893a270c954db0a921..58b40ae5933535bc869f76f4bfacc52fb5f705d4 100644 (file)
@@ -148,7 +148,7 @@ static void __irq_entry indy_buserror_irq(void)
        int irq = SGI_BUSERR_IRQ;
 
        irq_enter();
-       kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
+       kstat_incr_irq_this_cpu(irq);
        ip22_be_interrupt(irq);
        irq_exit();
 }
index 6071924493353c96c3c69560f90ab2488d49c617..045aa89f28d8c79fc8ffed9217f9e1a62e56e229 100644 (file)
@@ -123,7 +123,7 @@ void __irq_entry indy_8254timer_irq(void)
        char c;
 
        irq_enter();
-       kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
+       kstat_incr_irq_this_cpu(irq);
        printk(KERN_ALERT "Oops, got 8254 interrupt.\n");
        ArcRead(0, &c, 1, &cnt);
        ArcEnterInteractiveMode();
index 54e2c4de15c1638706879b6356c85c13c10165a0..70d9182b26f155703bbf7eb74a781a61681f2dc3 100644 (file)
@@ -182,7 +182,7 @@ void bcm1480_mailbox_interrupt(void)
        int irq = K_BCM1480_INT_MBOX_0_0;
        unsigned int action;
 
-       kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
+       kstat_incr_irq_this_cpu(irq);
        /* Load the mailbox register to figure out what we're supposed to do */
        action = (__raw_readq(mailbox_0_regs[cpu]) >> 48) & 0xffff;
 
index d7b942db0ea519e0c5f6f8b39c69fa21589a5eaa..db976117dd4d77948547b2f34a7a1b7ddde2a15b 100644 (file)
@@ -170,7 +170,7 @@ void sb1250_mailbox_interrupt(void)
        int irq = K_INT_MBOX_0;
        unsigned int action;
 
-       kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq));
+       kstat_incr_irq_this_cpu(irq);
        /* Load the mailbox register to figure out what we're supposed to do */
        action = (____raw_readq(mailbox_regs[cpu]) >> 48) & 0xffff;