diff options
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 38988491c622..fff8ebaa554f 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -487,7 +487,7 @@ void __cpuinit set_cpu_sibling_map(int cpu) | |||
487 | cpu_set(cpu, cpu_sibling_setup_map); | 487 | cpu_set(cpu, cpu_sibling_setup_map); |
488 | 488 | ||
489 | if (smp_num_siblings > 1) { | 489 | if (smp_num_siblings > 1) { |
490 | for_each_cpu_mask(i, cpu_sibling_setup_map) { | 490 | for_each_cpu_mask_nr(i, cpu_sibling_setup_map) { |
491 | if (c->phys_proc_id == cpu_data(i).phys_proc_id && | 491 | if (c->phys_proc_id == cpu_data(i).phys_proc_id && |
492 | c->cpu_core_id == cpu_data(i).cpu_core_id) { | 492 | c->cpu_core_id == cpu_data(i).cpu_core_id) { |
493 | cpu_set(i, per_cpu(cpu_sibling_map, cpu)); | 493 | cpu_set(i, per_cpu(cpu_sibling_map, cpu)); |
@@ -510,7 +510,7 @@ void __cpuinit set_cpu_sibling_map(int cpu) | |||
510 | return; | 510 | return; |
511 | } | 511 | } |
512 | 512 | ||
513 | for_each_cpu_mask(i, cpu_sibling_setup_map) { | 513 | for_each_cpu_mask_nr(i, cpu_sibling_setup_map) { |
514 | if (per_cpu(cpu_llc_id, cpu) != BAD_APICID && | 514 | if (per_cpu(cpu_llc_id, cpu) != BAD_APICID && |
515 | per_cpu(cpu_llc_id, cpu) == per_cpu(cpu_llc_id, i)) { | 515 | per_cpu(cpu_llc_id, cpu) == per_cpu(cpu_llc_id, i)) { |
516 | cpu_set(i, c->llc_shared_map); | 516 | cpu_set(i, c->llc_shared_map); |
@@ -1298,7 +1298,7 @@ static void remove_siblinginfo(int cpu) | |||
1298 | int sibling; | 1298 | int sibling; |
1299 | struct cpuinfo_x86 *c = &cpu_data(cpu); | 1299 | struct cpuinfo_x86 *c = &cpu_data(cpu); |
1300 | 1300 | ||
1301 | for_each_cpu_mask(sibling, per_cpu(cpu_core_map, cpu)) { | 1301 | for_each_cpu_mask_nr(sibling, per_cpu(cpu_core_map, cpu)) { |
1302 | cpu_clear(cpu, per_cpu(cpu_core_map, sibling)); | 1302 | cpu_clear(cpu, per_cpu(cpu_core_map, sibling)); |
1303 | /*/ | 1303 | /*/ |
1304 | * last thread sibling in this cpu core going down | 1304 | * last thread sibling in this cpu core going down |
@@ -1307,7 +1307,7 @@ static void remove_siblinginfo(int cpu) | |||
1307 | cpu_data(sibling).booted_cores--; | 1307 | cpu_data(sibling).booted_cores--; |
1308 | } | 1308 | } |
1309 | 1309 | ||
1310 | for_each_cpu_mask(sibling, per_cpu(cpu_sibling_map, cpu)) | 1310 | for_each_cpu_mask_nr(sibling, per_cpu(cpu_sibling_map, cpu)) |
1311 | cpu_clear(cpu, per_cpu(cpu_sibling_map, sibling)); | 1311 | cpu_clear(cpu, per_cpu(cpu_sibling_map, sibling)); |
1312 | cpus_clear(per_cpu(cpu_sibling_map, cpu)); | 1312 | cpus_clear(per_cpu(cpu_sibling_map, cpu)); |
1313 | cpus_clear(per_cpu(cpu_core_map, cpu)); | 1313 | cpus_clear(per_cpu(cpu_core_map, cpu)); |