x86/mm: Clean up the TLB flushing code
authorDave Hansen <[email protected]>
Thu, 31 Jul 2014 15:40:54 +0000 (08:40 -0700)
committerH. Peter Anvin <[email protected]>
Thu, 31 Jul 2014 15:48:50 +0000 (08:48 -0700)
commit4995ab9cf512e9a6cc07dfd6b1d4e2fc48ce7fef
tree467624294215591ad06894e992fabd1d416b3a48
parenteff50c347fcc8feeb8c1723c23c89aba67c60263
x86/mm: Clean up the TLB flushing code

The

if (cpumask_any_but(mm_cpumask(mm), smp_processor_id()) < nr_cpu_ids)

line of code is not exactly the easiest to audit, especially when
it ends up at two different indentation levels.  This eliminates
one of the the copy-n-paste versions.  It also gives us a unified
exit point for each path through this function.  We need this in
a minute for our tracepoint.

Signed-off-by: Dave Hansen <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Acked-by: Rik van Riel <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
arch/x86/mm/tlb.c