diff options
author | Mike Travis <travis@sgi.com> | 2009-01-14 18:43:54 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-15 05:15:36 -0500 |
commit | d2287f5ebea9ff2487d614719775f0b03fce15f6 (patch) | |
tree | 20659ab7806c9dd247d9789c53c34e38fb38e4b6 /arch/sparc | |
parent | e46d51787e23a607cac5f593ac9926743a636dff (diff) |
irq: update all arches for new irq_desc, fix
Impact: fix build errors
Since the SPARSE IRQS changes redefined how the kstat irqs are
organized, arch's must use the new accessor function:
kstat_incr_irqs_this_cpu(irq, DESC);
If CONFIG_SPARSE_IRQS is set, then DESC is a pointer to the
irq_desc which has a pointer to the kstat_irqs. If not, then
the .irqs field of struct kernel_stat is used instead.
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sparc')
-rw-r--r-- | arch/sparc/kernel/time_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc/kernel/time_64.c b/arch/sparc/kernel/time_64.c index 54405d362148..28b48f3eb256 100644 --- a/arch/sparc/kernel/time_64.c +++ b/arch/sparc/kernel/time_64.c | |||
@@ -727,7 +727,7 @@ void timer_interrupt(int irq, struct pt_regs *regs) | |||
727 | 727 | ||
728 | irq_enter(); | 728 | irq_enter(); |
729 | 729 | ||
730 | kstat_this_cpu.irqs[0]++; | 730 | kstat_incr_irqs_this_cpu(0, irq_to_desc(0)); |
731 | 731 | ||
732 | if (unlikely(!evt->event_handler)) { | 732 | if (unlikely(!evt->event_handler)) { |
733 | printk(KERN_WARNING | 733 | printk(KERN_WARNING |