powerpc/64s: Implement ptep_clear_flush_young that does not flush TLBs
authorNicholas Piggin <npiggin@gmail.com>
Thu, 17 Dec 2020 13:47:31 +0000 (23:47 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 14:09:45 +0000 (01:09 +1100)
commit3cb1aa7aa39402f4f2cb847b1f16ade3bce43a97
treee080be0f37477a4b24d7e0a836fc4a27117b40e2
parent032b7f08932c9b212952d6d585e45b2941b3e8be
powerpc/64s: Implement ptep_clear_flush_young that does not flush TLBs

Similarly to the x86 commit b13b1d2d8692 ("x86/mm: In the PTE swapout
page reclaim case clear the accessed bit instead of flushing the TLB"),
implement ptep_clear_flush_young that does not actually flush the TLB
in the case the referenced bit is cleared.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201217134731.488135-8-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/pgtable.h