aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/smpboot.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-05-12 15:21:13 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 12:35:12 -0400
commit334ef7a7ab8f80b689a2be95d5e62d2167900865 (patch)
tree1853bf534679b2fa7e5b79f481b9a55fdc2f78b4 /arch/x86/kernel/smpboot.c
parent0e12f848b337fc034ceb3c0d03d75f8de1b8cc96 (diff)
x86: use performance variant for_each_cpu_mask_nr
Change references from for_each_cpu_mask to for_each_cpu_mask_nr where appropriate Reviewed-by: Paul Jackson <pj@sgi.com> Reviewed-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> commit 2d474871e2fb092eb46a0930aba5442e10eb96cc Author: Mike Travis <travis@sgi.com> Date: Mon May 12 21:21:13 2008 +0200
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r--arch/x86/kernel/smpboot.c8
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));