]> 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>
Mon, 19 Nov 2012 01:15:34 +0000 (02:15 +0100)
commite29be43ba99182dc4f8ec4d305e51e62c8f1e1f9
treec0d95feeaff7ed47b5fe3a6f6c306c63ef50567e
parentdc42efec411ff046fd810b86d6304cfdc37a6d16
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>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Hugh Dickins <hughd@google.com>
Link: http://lkml.kernel.org/n/tip-vm3rkzevahelwhejx5uwm8ex@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
mm/pgtable-generic.c