linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / arch / sparc / kernel / sun4d_irq.c
index ca656d9..5262134 100644 (file)
@@ -54,7 +54,7 @@ unsigned char cpu_leds[32];
 unsigned char sbus_tid[32];
 #endif
 
-static struct irqaction *irq_action[NR_IRQS];
+extern struct irqaction *irq_action[];
 extern spinlock_t irq_action_lock;
 
 struct sbus_action {
@@ -103,9 +103,11 @@ found_it:  seq_printf(p, "%3d: ", i);
 #ifndef CONFIG_SMP
                seq_printf(p, "%10u ", kstat_irqs(i));
 #else
-               for_each_online_cpu(x)
-                       seq_printf(p, "%10u ",
-                              kstat_cpu(cpu_logical_map(x)).irqs[i]);
+               for (x = 0; x < NR_CPUS; x++) {
+                       if (cpu_online(x))
+                               seq_printf(p, "%10u ",
+                                      kstat_cpu(cpu_logical_map(x)).irqs[i]);
+               }
 #endif
                seq_printf(p, "%c %s",
                        (action->flags & SA_INTERRUPT) ? '+' : ' ',