]> 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>
Mon, 14 Nov 2011 02:58:22 +0000 (13:58 +1100)
commit2a5dbf7995b66010e1e493f78cd302f9995296a7
tree57b4cd4ad0540271c23997fce1d477f27a7d73be
parent9a32359dfff1faa7f75e26e58ed2d9cbd7009d90
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