]> git.kernelconcepts.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, 8 Nov 2011 03:15:47 +0000 (14:15 +1100)
commit08b6ff2e91c31474194c07e958c177290ef60fb2
tree5e623433c3478f7e4c546de1f71ecef346f89a01
parent2e23437345f82683cb601721f313acadbff50d63
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