]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: tlb flush avoid superflous leave_mm()
authorShaohua Li <shaohua.li@intel.com>
Wed, 5 Oct 2011 00:42:28 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:31:51 +0000 (17:31 +1100)
commit1944fd1026408d4c41e1622611d007f09e702c3c
tree5a666d3ad37f51d70f775027350f9e9775239696
parentb3840be9d0bc7e4315cc61d1e2c6b3a6b3ce83e4
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