]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/sparc/kernel/sun4d_smp.c
[PATCH] more for_each_cpu() conversions
[net-next-2.6.git] / arch / sparc / kernel / sun4d_smp.c
index 4219dd2ce3a2332094340c731d4142f4b569c461..41bb9596be48f443f57c66e5575739dab246d6ed 100644 (file)
@@ -249,11 +249,9 @@ void __init smp4d_boot_cpus(void)
        } else {
                unsigned long bogosum = 0;
                
-               for(i = 0; i < NR_CPUS; i++) {
-                       if (cpu_isset(i, cpu_present_map)) {
-                               bogosum += cpu_data(i).udelay_val;
-                               smp_highest_cpu = i;
-                       }
+               for_each_present_cpu(i) {
+                       bogosum += cpu_data(i).udelay_val;
+                       smp_highest_cpu = i;
                }
                SMP_PRINTK(("Total of %d Processors activated (%lu.%02lu BogoMIPS).\n", cpucount + 1, bogosum/(500000/HZ), (bogosum/(5000/HZ))%100));
                printk("Total of %d Processors activated (%lu.%02lu BogoMIPS).\n",