|
@@ -218,7 +218,7 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
|
|
|
|
if (i == 0) {
|
|
|
seq_printf(p, " ");
|
|
|
- for_each_cpu(j)
|
|
|
+ for_each_online_cpu(j)
|
|
|
seq_printf(p, "CPU%d ",j);
|
|
|
seq_putc(p, '\n');
|
|
|
}
|
|
@@ -232,7 +232,7 @@ int show_interrupts(struct seq_file *p, void *v)
|
|
|
#ifndef CONFIG_SMP
|
|
|
seq_printf(p, "%10u ", kstat_irqs(i));
|
|
|
#else
|
|
|
- for_each_cpu(j)
|
|
|
+ for_each_online_cpu(j)
|
|
|
seq_printf(p, "%10u ", kstat_cpu(j).irqs[i]);
|
|
|
#endif
|
|
|
seq_printf(p, " %14s", irq_desc[i].handler->typename);
|
|
@@ -246,12 +246,12 @@ skip:
|
|
|
spin_unlock_irqrestore(&irq_desc[i].lock, flags);
|
|
|
} else if (i == NR_IRQS) {
|
|
|
seq_printf(p, "NMI: ");
|
|
|
- for_each_cpu(j)
|
|
|
+ for_each_online_cpu(j)
|
|
|
seq_printf(p, "%10u ", nmi_count(j));
|
|
|
seq_putc(p, '\n');
|
|
|
#ifdef CONFIG_X86_LOCAL_APIC
|
|
|
seq_printf(p, "LOC: ");
|
|
|
- for_each_cpu(j)
|
|
|
+ for_each_online_cpu(j)
|
|
|
seq_printf(p, "%10u ",
|
|
|
per_cpu(irq_stat,j).apic_timer_irqs);
|
|
|
seq_putc(p, '\n');
|