diff options
author | Yinghai Lu <yinghai@kernel.org> | 2009-01-11 16:35:56 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-12 14:01:12 -0500 |
commit | 0b0f0b1c2c87de299df6f92a8ffc0a73bd1bb960 (patch) | |
tree | c5d047cc71926b2ac5d657cce1adc577f92f4f9b /arch/alpha | |
parent | d178a1eb5c034df1f74a2b67bf311afa5d6b8e95 (diff) |
sparseirq: use kstat_irqs_cpu on non-x86 architectures too
so we could move kstat_irqs array to irq_desc struct.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/alpha')
-rw-r--r-- | arch/alpha/kernel/irq.c | 2 | ||||
-rw-r--r-- | arch/alpha/kernel/irq_alpha.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/alpha/kernel/irq.c b/arch/alpha/kernel/irq.c index 703731accda6..430550bd1eb6 100644 --- a/arch/alpha/kernel/irq.c +++ b/arch/alpha/kernel/irq.c | |||
@@ -90,7 +90,7 @@ show_interrupts(struct seq_file *p, void *v) | |||
90 | seq_printf(p, "%10u ", kstat_irqs(irq)); | 90 | seq_printf(p, "%10u ", kstat_irqs(irq)); |
91 | #else | 91 | #else |
92 | for_each_online_cpu(j) | 92 | for_each_online_cpu(j) |
93 | seq_printf(p, "%10u ", kstat_cpu(j).irqs[irq]); | 93 | seq_printf(p, "%10u ", kstat_irqs_cpu(i, j)); |
94 | #endif | 94 | #endif |
95 | seq_printf(p, " %14s", irq_desc[irq].chip->typename); | 95 | seq_printf(p, " %14s", irq_desc[irq].chip->typename); |
96 | seq_printf(p, " %c%s", | 96 | seq_printf(p, " %c%s", |
diff --git a/arch/alpha/kernel/irq_alpha.c b/arch/alpha/kernel/irq_alpha.c index e16aeb6e79ef..67c19f8a9944 100644 --- a/arch/alpha/kernel/irq_alpha.c +++ b/arch/alpha/kernel/irq_alpha.c | |||
@@ -64,7 +64,7 @@ do_entInt(unsigned long type, unsigned long vector, | |||
64 | smp_percpu_timer_interrupt(regs); | 64 | smp_percpu_timer_interrupt(regs); |
65 | cpu = smp_processor_id(); | 65 | cpu = smp_processor_id(); |
66 | if (cpu != boot_cpuid) { | 66 | if (cpu != boot_cpuid) { |
67 | kstat_cpu(cpu).irqs[RTC_IRQ]++; | 67 | kstat_incr_irqs_this_cpu(RTC_IRQ, irq_to_desc(RTC_IRQ)); |
68 | } else { | 68 | } else { |
69 | handle_irq(RTC_IRQ); | 69 | handle_irq(RTC_IRQ); |
70 | } | 70 | } |