Commit 310ff2c8 authored by Thomas Gleixner's avatar Thomas Gleixner

mips: Use the core irq stats function

Let the core do the irq_desc resolution.

No functional change.
Signed-off-by: default avatarThomas 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.deSigned-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 792d0018
...@@ -1007,7 +1007,7 @@ static void __irq_entry smtc_clock_tick_interrupt(void) ...@@ -1007,7 +1007,7 @@ static void __irq_entry smtc_clock_tick_interrupt(void)
int irq = MIPS_CPU_IRQ_BASE + 1; int irq = MIPS_CPU_IRQ_BASE + 1;
irq_enter(); 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 = &per_cpu(mips_clockevent_device, cpu);
cd->event_handler(cd); cd->event_handler(cd);
irq_exit(); irq_exit();
......
...@@ -148,7 +148,7 @@ static void __irq_entry indy_buserror_irq(void) ...@@ -148,7 +148,7 @@ static void __irq_entry indy_buserror_irq(void)
int irq = SGI_BUSERR_IRQ; int irq = SGI_BUSERR_IRQ;
irq_enter(); irq_enter();
kstat_incr_irqs_this_cpu(irq, irq_to_desc(irq)); kstat_incr_irq_this_cpu(irq);
ip22_be_interrupt(irq); ip22_be_interrupt(irq);
irq_exit(); irq_exit();
} }
......
...@@ -123,7 +123,7 @@ void __irq_entry indy_8254timer_irq(void) ...@@ -123,7 +123,7 @@ void __irq_entry indy_8254timer_irq(void)
char c; char c;
irq_enter(); 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"); printk(KERN_ALERT "Oops, got 8254 interrupt.\n");
ArcRead(0, &c, 1, &cnt); ArcRead(0, &c, 1, &cnt);
ArcEnterInteractiveMode(); ArcEnterInteractiveMode();
......
...@@ -182,7 +182,7 @@ void bcm1480_mailbox_interrupt(void) ...@@ -182,7 +182,7 @@ void bcm1480_mailbox_interrupt(void)
int irq = K_BCM1480_INT_MBOX_0_0; int irq = K_BCM1480_INT_MBOX_0_0;
unsigned int action; 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 */ /* Load the mailbox register to figure out what we're supposed to do */
action = (__raw_readq(mailbox_0_regs[cpu]) >> 48) & 0xffff; action = (__raw_readq(mailbox_0_regs[cpu]) >> 48) & 0xffff;
......
...@@ -170,7 +170,7 @@ void sb1250_mailbox_interrupt(void) ...@@ -170,7 +170,7 @@ void sb1250_mailbox_interrupt(void)
int irq = K_INT_MBOX_0; int irq = K_INT_MBOX_0;
unsigned int action; 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 */ /* Load the mailbox register to figure out what we're supposed to do */
action = (____raw_readq(mailbox_regs[cpu]) >> 48) & 0xffff; action = (____raw_readq(mailbox_regs[cpu]) >> 48) & 0xffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment