]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: Only flush the TLB when clearing an accessible pte
authorRik van Riel <riel@redhat.com>
Tue, 9 Oct 2012 13:31:59 +0000 (15:31 +0200)
committerIngo Molnar <mingo@kernel.org>
Sun, 28 Oct 2012 16:30:56 +0000 (17:30 +0100)
commit6fe64360a759f3cbbff4835da4c226d6cb78c34d
treecd5982d1038cdc1590b5ceb57a1d1badb4b5c2f5
parente9df40bfeb2572ac61f894daabd029fdebbb3b4a
mm: Only flush the TLB when clearing an accessible pte

If ptep_clear_flush() is called to clear a page table entry that is
accessible anyway by the CPU, eg. a _PAGE_PROTNONE page table entry,
there is no need to flush the TLB on remote CPUs.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/n/tip-vm3rkzevahelwhejx5uwm8ex@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
mm/pgtable-generic.c