aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kernel/irq.c
diff options
context:
space:
mode:
authorTony Luck <tony.luck@intel.com>2005-10-28 15:26:43 -0700
committerTony Luck <tony.luck@intel.com>2005-10-28 15:26:43 -0700
commitd73dee6ee4b554074f88e4ebd956ea4db8552d52 (patch)
tree9f4468c7b54d0796d7659ce3ae30b756217522e9 /arch/ia64/kernel/irq.c
parent9acd3fa2e10f4e5b093ddf93af8f23cc9bdbd621 (diff)
parentddf6d0a00cbb4ad6d4fb4200cc911bb9389174c1 (diff)
downloadkernel_samsung_smdk4412-d73dee6ee4b554074f88e4ebd956ea4db8552d52.tar.gz
kernel_samsung_smdk4412-d73dee6ee4b554074f88e4ebd956ea4db8552d52.tar.bz2
kernel_samsung_smdk4412-d73dee6ee4b554074f88e4ebd956ea4db8552d52.zip
Pull for-each-cpu into release branch
Diffstat (limited to 'arch/ia64/kernel/irq.c')
-rw-r--r--arch/ia64/kernel/irq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/ia64/kernel/irq.c b/arch/ia64/kernel/irq.c
index 205d9802826..d33244c3275 100644
--- a/arch/ia64/kernel/irq.c
+++ b/arch/ia64/kernel/irq.c
@@ -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);