]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: tlb flush avoid superflous leave_mm()
authorShaohua Li <shaohua.li@intel.com>
Tue, 8 Nov 2011 00:19:54 +0000 (11:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 15 Nov 2011 01:49:30 +0000 (12:49 +1100)
commit862c6f06cef3ff02ad9a6bd3071c3c0b94f4506a
treec487e8f03ae4178f0b4e15561b5d573b2a647826
parent9fcf653b5d95afcb8801860e7db1c07b6cda7585
x86: tlb flush avoid superflous leave_mm()

If just one page VA tlb is required to be flushed and current task is in
lazy TLB state, doing leave_mm() is superfluous because it flushes the
whole TLB.  This can reduce some TLB miss.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/mm/tlb.c