|
@@ -1090,7 +1090,7 @@ static void __init smp_boot_cpus(unsigned int max_cpus)
|
|
|
* Allow the user to impress friends.
|
|
|
*/
|
|
|
Dprintk("Before bogomips.\n");
|
|
|
- for (cpu = 0; cpu < NR_CPUS; cpu++)
|
|
|
+ for_each_possible_cpu(cpu)
|
|
|
if (cpu_isset(cpu, cpu_callout_map))
|
|
|
bogosum += cpu_data(cpu).loops_per_jiffy;
|
|
|
printk(KERN_INFO
|
|
@@ -1121,7 +1121,7 @@ static void __init smp_boot_cpus(unsigned int max_cpus)
|
|
|
* construct cpu_sibling_map, so that we can tell sibling CPUs
|
|
|
* efficiently.
|
|
|
*/
|
|
|
- for (cpu = 0; cpu < NR_CPUS; cpu++) {
|
|
|
+ for_each_possible_cpu(cpu) {
|
|
|
cpus_clear(per_cpu(cpu_sibling_map, cpu));
|
|
|
cpus_clear(per_cpu(cpu_core_map, cpu));
|
|
|
}
|