|
@@ -57,9 +57,9 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
|
|
|
|
if (i == 0) {
|
|
|
seq_printf(p, " ");
|
|
|
- for (j=0; j<NR_CPUS; j++)
|
|
|
- if (cpu_online(j))
|
|
|
- seq_printf(p, "CPU%d ",j);
|
|
|
+ for_each_online_cpu(j) {
|
|
|
+ seq_printf(p, "CPU%d ",j);
|
|
|
+ }
|
|
|
seq_putc(p, '\n');
|
|
|
}
|
|
|
|
|
@@ -72,9 +72,9 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
|
#ifndef CONFIG_SMP
|
|
|
seq_printf(p, "%10u ", kstat_irqs(i));
|
|
|
#else
|
|
|
- for (j = 0; j < NR_CPUS; j++)
|
|
|
- if (cpu_online(j))
|
|
|
- seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]);
|
|
|
+ for_each_online_cpu(j) {
|
|
|
+ seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]);
|
|
|
+ }
|
|
|
#endif
|
|
|
seq_printf(p, " %14s", irq_desc[i].handler->typename);
|
|
|
seq_printf(p, " %s", action->name);
|