]> git.baikalelectronics.ru Git - 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)
commitf4aaf67a02c95a7b4a6b8bd57c4260cae7e26450
tree9b06c2107a0c7ee8f5496fcd6bfc06f94441c46e
parent131f895dc8f42c533db18422793a511fc8a1b4bf
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