]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm64: Convert pte handling from inline asm to using (cmp)xchg
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 26 Jun 2017 13:27:36 +0000 (14:27 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 21 Aug 2017 10:12:29 +0000 (11:12 +0100)
commit3bbf7157ac66a88d94b291d4d5e2b2a9319a0f90
tree9b06c2107a0c7ee8f5496fcd6bfc06f94441c46e
parenta7ba38d68017477bd441c62b11bb6a1fc9140ecd
arm64: Convert pte handling from inline asm to using (cmp)xchg

With the support for hardware updates of the access and dirty states,
the following pte handling functions had to be implemented using
exclusives: __ptep_test_and_clear_young(), ptep_get_and_clear(),
ptep_set_wrprotect() and ptep_set_access_flags(). To take advantage of
the LSE atomic instructions and also make the code cleaner, convert
these pte functions to use the more generic cmpxchg()/xchg().

Reviewed-by: Will Deacon <will.deacon@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Steve Capper <steve.capper@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/pgtable.h
arch/arm64/mm/fault.c