Commit 54e2e762 authored by David S. Miller's avatar David S. Miller

[SPARC64]: Use kstat_this_cpu where possible.

parent 4731c06b
...@@ -733,7 +733,7 @@ void handler_irq(int irq, struct pt_regs *regs) ...@@ -733,7 +733,7 @@ void handler_irq(int irq, struct pt_regs *regs)
#endif #endif
irq_enter(); irq_enter();
kstat_cpu(cpu).irqs[irq]++; kstat_this_cpu.irqs[irq]++;
/* Sliiiick... */ /* Sliiiick... */
#ifndef CONFIG_SMP #ifndef CONFIG_SMP
...@@ -805,7 +805,7 @@ void sparc_floppy_irq(int irq, void *dev_cookie, struct pt_regs *regs) ...@@ -805,7 +805,7 @@ void sparc_floppy_irq(int irq, void *dev_cookie, struct pt_regs *regs)
int cpu = smp_processor_id(); int cpu = smp_processor_id();
irq_enter(); irq_enter();
kstat_cpu(cpu).irqs[irq]++; kstat_this_cpu.irqs[irq]++;
*(irq_work(cpu, irq)) = 0; *(irq_work(cpu, irq)) = 0;
bucket = get_ino_in_irqaction(action) + ivector_table; bucket = get_ino_in_irqaction(action) + ivector_table;
......
...@@ -1060,7 +1060,7 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs) ...@@ -1060,7 +1060,7 @@ void smp_percpu_timer_interrupt(struct pt_regs *regs)
irq_enter(); irq_enter();
if (cpu == boot_cpu_id) { if (cpu == boot_cpu_id) {
kstat_cpu(cpu).irqs[0]++; kstat_this_cpu.irqs[0]++;
timer_tick_interrupt(regs); timer_tick_interrupt(regs);
} }
......
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