[Patch 20/23] mask v2 - Optimize i386 cpumask macro usage

Paul Jackson
2004-04-01T21:29:26Z

Patch_20_of_23 - Optimize i386 cpumask macro usage.
Optimize a bit of cpumask code for asm-i386/mach-es7000
Code untested, unreviewed. Feedback welcome.

Diffstat Patch_20_of_23:
mach_ipi.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)

diff -Nru a/include/asm-i386/mach-es7000/mach_ipi.h b/include/asm-i386/mach-es7000/mach_ipi.h
--- a/include/asm-i386/mach-es7000/mach_ipi.h Mon Mar 29 01:04:03 2004
+++ b/include/asm-i386/mach-es7000/mach_ipi.h Mon Mar 29 01:04:03 2004
@@ -10,9 +10,8 @@

static inline void send_IPI_allbutself(int vector)
{
- cpumask_t mask = cpumask_of_cpu(smp_processor_id());
- cpus_complement(mask);
- cpus_and(mask, mask, cpu_online_map);
+ cpumask_t mask = cpu_online_map;
+ cpu_clear(smp_processor_id(), mask);
if (!cpus_empty(mask))
send_IPI_mask(mask, vector);
}