]> git.baikalelectronics.ru Git - kernel.git/commit
x86: mm: drop TLB flush from ptep_set_access_flags
authorRik van Riel <riel@redhat.com>
Tue, 6 Nov 2012 09:55:18 +0000 (09:55 +0000)
committerMel Gorman <mgorman@suse.de>
Tue, 11 Dec 2012 14:28:33 +0000 (14:28 +0000)
commit98bc3730b3c68e04d7301f9babe782b98dc42068
tree291232b64431eeb2c815adc38b20d66cb3355364
parentbf7e5222beba4db938d207671595625166324559
x86: mm: drop 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.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Linus Torvalds <torvalds@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Michel Lespinasse <walken@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@redhat.com>
arch/x86/mm/pgtable.c