diff options
author | Mike Travis <travis@sgi.com> | 2008-05-12 15:21:13 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 12:35:12 -0400 |
commit | 334ef7a7ab8f80b689a2be95d5e62d2167900865 (patch) | |
tree | 1853bf534679b2fa7e5b79f481b9a55fdc2f78b4 /arch/x86/xen/smp.c | |
parent | 0e12f848b337fc034ceb3c0d03d75f8de1b8cc96 (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/xen/smp.c')
-rw-r--r-- | arch/x86/xen/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c index 94e69000f982..7a70638797ed 100644 --- a/arch/x86/xen/smp.c +++ b/arch/x86/xen/smp.c | |||
@@ -345,7 +345,7 @@ static void xen_send_IPI_mask(cpumask_t mask, enum ipi_vector vector) | |||
345 | 345 | ||
346 | cpus_and(mask, mask, cpu_online_map); | 346 | cpus_and(mask, mask, cpu_online_map); |
347 | 347 | ||
348 | for_each_cpu_mask(cpu, mask) | 348 | for_each_cpu_mask_nr(cpu, mask) |
349 | xen_send_IPI_one(cpu, vector); | 349 | xen_send_IPI_one(cpu, vector); |
350 | } | 350 | } |
351 | 351 | ||
@@ -413,7 +413,7 @@ int xen_smp_call_function_mask(cpumask_t mask, void (*func)(void *), | |||
413 | 413 | ||
414 | /* Make sure other vcpus get a chance to run if they need to. */ | 414 | /* Make sure other vcpus get a chance to run if they need to. */ |
415 | yield = false; | 415 | yield = false; |
416 | for_each_cpu_mask(cpu, mask) | 416 | for_each_cpu_mask_nr(cpu, mask) |
417 | if (xen_vcpu_stolen(cpu)) | 417 | if (xen_vcpu_stolen(cpu)) |
418 | yield = true; | 418 | yield = true; |
419 | 419 | ||