]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86/mm: Completely drop the TLB flush from ptep_set_access_flags()
authorRik van Riel <riel@redhat.com>
Sat, 27 Oct 2012 16:12:11 +0000 (12:12 -0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 13 Nov 2012 12:53:11 +0000 (13:53 +0100)
commitc740b1cccdcb9dcd0c058d7e84368ffbcbbf0f44
tree10cebf74b1a2ef89c3dd02969b9da2d784c6b1d9
parent02743c9c03f1cc36f87a967c04fa71baa9720bee
x86/mm: Completely drop the TLB flush from ptep_set_access_flags()

Intel has an architectural guarantee that the TLB entry causing
a page fault gets invalidated automatically. This means
we should be able to drop the local TLB invalidation.

Because of the way other areas of the page fault code work,
chances are good that all x86 CPUs do this.  However, if
someone somewhere has an x86 CPU that does not invalidate
the TLB entry causing a page fault, this one-liner should
be easy to revert - or a CPU model specific quirk could
be added to retain this optimization on most CPUs.

Signed-off-by: Rik van Riel <riel@redhat.com>
Acked-by: Linus Torvalds <torvalds@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michel Lespinasse <walken@google.com>
[ Applied changelog massage and moved this last in the series,
  to create bisection distance. ]
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/pgtable.c