[PATCH] [22/34] i386: clean up flush_tlb_others fn
- From: Andi Kleen <ak@xxxxxxx>
- Date: Mon, 30 Apr 2007 17:49:55 +0200 (CEST)
From: "Keshavamurthy, Anil S" <anil.s.keshavamurthy@xxxxxxxxx>
Cleanup flush_tlb_others(), no functional change.
Signed-off-by: Anil S Keshavamurthy <anil.s.keshavamurthy@xxxxxxxxx>
Signed-off-by: Andi Kleen <ak@xxxxxxx>
Cc: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---
arch/i386/kernel/smp.c | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
Index: linux/arch/i386/kernel/smp.c
===================================================================
--- linux.orig/arch/i386/kernel/smp.c
+++ linux/arch/i386/kernel/smp.c
@@ -375,17 +375,7 @@ void native_flush_tlb_others(const cpuma
flush_mm = mm;
flush_va = va;
-#if NR_CPUS <= BITS_PER_LONG
- atomic_set_mask(cpumask, &flush_cpumask);
-#else
- {
- int k;
- unsigned long *flush_mask = (unsigned long *)&flush_cpumask;
- unsigned long *cpu_mask = (unsigned long *)&cpumask;
- for (k = 0; k < BITS_TO_LONGS(NR_CPUS); ++k)
- atomic_set_mask(cpu_mask[k], &flush_mask[k]);
- }
-#endif
+ cpus_or(flush_cpumask, cpumask, flush_cpumask);
/*
* We have to send the IPI only to
* CPUs affected.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- Prev by Date: [PATCH] [5/34] i386: Enable support for fixed-range IORRs to keep RdMem & WrMem in sync
- Next by Date: [PATCH] [1/34] x86_64: Move mtrr prototypes from proto.h to mtrr.h
- Previous by thread: [PATCH] [5/34] i386: Enable support for fixed-range IORRs to keep RdMem & WrMem in sync
- Next by thread: [PATCH] [1/34] x86_64: Move mtrr prototypes from proto.h to mtrr.h
- Index(es):
Relevant Pages
- Re: [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()
... It also makes sure that len and vma are validated. ... We'd prefer that the
functional change not be bundled with a cleanup, ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [PATCH] mm: tidy up follow_hugetlb_page() and get_user_pages()
... It also makes sure that len and vma are validated. ... We'd prefer that the
functional change not be bundled with a cleanup, ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - [PATCH 03/10] avr32: Move setup_platform() into chip-specific file
... functional change since all setup_platformever did was call those ... void
setup_platform; ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - [PATCH] cpuset: minor code refinements
... A couple of minor code simplifications to the ... No functional change.
... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please
read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - [PATCH] Cleanup flush_tlb_others fn
... Cleanup flush_tlb_others, no functional change. ... More majordomo
info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/
... (Linux-Kernel)