diff options
author | Tony Luck <tony.luck@intel.com> | 2005-10-28 18:26:43 -0400 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2005-10-28 18:26:43 -0400 |
commit | d73dee6ee4b554074f88e4ebd956ea4db8552d52 (patch) | |
tree | 9f4468c7b54d0796d7659ce3ae30b756217522e9 /arch/ia64/kernel/smpboot.c | |
parent | 9acd3fa2e10f4e5b093ddf93af8f23cc9bdbd621 (diff) | |
parent | ddf6d0a00cbb4ad6d4fb4200cc911bb9389174c1 (diff) |
Pull for-each-cpu into release branch
Diffstat (limited to 'arch/ia64/kernel/smpboot.c')
-rw-r--r-- | arch/ia64/kernel/smpboot.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/ia64/kernel/smpboot.c b/arch/ia64/kernel/smpboot.c index 7d72c0d872b3..400a48987124 100644 --- a/arch/ia64/kernel/smpboot.c +++ b/arch/ia64/kernel/smpboot.c | |||
@@ -694,9 +694,9 @@ smp_cpus_done (unsigned int dummy) | |||
694 | * Allow the user to impress friends. | 694 | * Allow the user to impress friends. |
695 | */ | 695 | */ |
696 | 696 | ||
697 | for (cpu = 0; cpu < NR_CPUS; cpu++) | 697 | for_each_online_cpu(cpu) { |
698 | if (cpu_online(cpu)) | 698 | bogosum += cpu_data(cpu)->loops_per_jiffy; |
699 | bogosum += cpu_data(cpu)->loops_per_jiffy; | 699 | } |
700 | 700 | ||
701 | printk(KERN_INFO "Total of %d processors activated (%lu.%02lu BogoMIPS).\n", | 701 | printk(KERN_INFO "Total of %d processors activated (%lu.%02lu BogoMIPS).\n", |
702 | (int)num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100); | 702 | (int)num_online_cpus(), bogosum/(500000/HZ), (bogosum/(5000/HZ))%100); |