]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: tlb flush avoid superflous leave_mm()
authorShaohua Li <shaohua.li@intel.com>
Wed, 28 Sep 2011 00:49:42 +0000 (10:49 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 29 Sep 2011 06:07:51 +0000 (16:07 +1000)
commit5b181b8d2579b91db175a7e893a963d40a249210
tree9c0292fc1c6ea50c40d8b51446a2156e54ae7f55
parentef8745e09e62edd6b819c121fe78111b50f65b51
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 <>
arch/x86/mm/tlb.c