sparc64: Fix build of timer_interrupt().
authorDavid Miller <davem@davemloft.net>
Thu, 26 Mar 2009 23:44:17 +0000 (16:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 Mar 2009 00:00:25 +0000 (17:00 -0700)
arch/sparc/kernel/time_64.c: In function ‘timer_interrupt’:
  arch/sparc/kernel/time_64.c:732: error: ‘struct kernel_stat’ has no member named ‘irqs’
  make[1]: *** [arch/sparc/kernel/time_64.o] Error 1

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc/kernel/time_64.c

index 642562d83ec44603dddfbc6276fcb7a2e52a211d..4ee2e48c4b392c84ca1db5870778a7d3645e24cc 100644 (file)
@@ -724,12 +724,14 @@ void timer_interrupt(int irq, struct pt_regs *regs)
        unsigned long tick_mask = tick_ops->softint_mask;
        int cpu = smp_processor_id();
        struct clock_event_device *evt = &per_cpu(sparc64_events, cpu);
+       struct irq_desc *desc;
 
        clear_softint(tick_mask);
 
        irq_enter();
 
-       kstat_this_cpu.irqs[0]++;
+       desc = irq_to_desc(0);
+       kstat_incr_irqs_this_cpu(0, desc);
 
        if (unlikely(!evt->event_handler)) {
                printk(KERN_WARNING