aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/smp.c
diff options
context:
space:
mode:
authorKeshavamurthy, Anil S <anil.s.keshavamurthy@intel.com>2007-05-02 13:27:18 -0400
committerAndi Kleen <andi@basil.nowhere.org>2007-05-02 13:27:18 -0400
commit1bdae4583e7abd2c1daedfc9f46ac6420a26c1b0 (patch)
tree350b95a388d59dc08c128d7d1c666ef06bd8a9cc /arch/i386/kernel/smp.c
parent62dbc210e2532dec061ca65eeb8bc31b6c898b01 (diff)
[PATCH] i386: clean up flush_tlb_others fn
Cleanup flush_tlb_others(), no functional change. Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@intel.com> Signed-off-by: Andi Kleen <ak@suse.de> Cc: Andi Kleen <ak@suse.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'arch/i386/kernel/smp.c')
-rw-r--r--arch/i386/kernel/smp.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/i386/kernel/smp.c b/arch/i386/kernel/smp.c
index f98c3ffd6fc3..89a45a9ddcd4 100644
--- a/arch/i386/kernel/smp.c
+++ b/arch/i386/kernel/smp.c
@@ -375,17 +375,7 @@ void native_flush_tlb_others(const cpumask_t *cpumaskp, struct mm_struct *mm,
375 375
376 flush_mm = mm; 376 flush_mm = mm;
377 flush_va = va; 377 flush_va = va;
378#if NR_CPUS <= BITS_PER_LONG 378 cpus_or(flush_cpumask, cpumask, flush_cpumask);
379 atomic_set_mask(cpumask, &flush_cpumask);
380#else
381 {
382 int k;
383 unsigned long *flush_mask = (unsigned long *)&flush_cpumask;
384 unsigned long *cpu_mask = (unsigned long *)&cpumask;
385 for (k = 0; k < BITS_TO_LONGS(NR_CPUS); ++k)
386 atomic_set_mask(cpu_mask[k], &flush_mask[k]);
387 }
388#endif
389 /* 379 /*
390 * We have to send the IPI only to 380 * We have to send the IPI only to
391 * CPUs affected. 381 * CPUs affected.