]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/mm: Avoid superflous leave_mm() in the TLB flush path
authorShaohua Li <shaohua.li@intel.com>
Tue, 15 Nov 2011 22:49:02 +0000 (14:49 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 5 Dec 2011 16:11:50 +0000 (17:11 +0100)
commit287de5b2cb365b98190b5de8ace1c5a31768a5ae
tree4b7919f61fa8fb02a03d4fd6b52554fde107c7c6
parent706d9a9c8b5758390036b9980a2b12d809599777
x86/mm: Avoid superflous leave_mm() in the TLB flush path

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: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/tlb.c