path: root/arch/arm64/include
diff options
authorCatalin Marinas <>2016-05-05 10:43:59 +0100
committerWill Deacon <>2016-05-06 12:46:53 +0100
commit911f56eeb87ee378f5e215469268a7a2f68a5a8a (patch)
treeb08d33b0a48e16c4227aafe5b34cd9c21563077b /arch/arm64/include
parent394bf2f24834352f461cb139eb8e00af26d5f51a (diff)
arm64: Fix typo in the pmdp_huge_get_and_clear() definition
With hardware AF/DBM support, pmd modifications (transparent huge pages) should be performed atomically using load/store exclusive. The initial patches defined the get-and-clear function and __HAVE_ARCH_* macro without the "huge" word, leaving the pmdp_huge_get_and_clear() to the default, non-atomic implementation. Fixes: 2f4b829c625e ("arm64: Add support for hardware updates of the access and dirty pte bits") Cc: <> # 4.3+ Reviewed-by: Will Deacon <> Signed-off-by: Catalin Marinas <> Signed-off-by: Will Deacon <>
Diffstat (limited to 'arch/arm64/include')
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm64/include/asm/pgtable.h b/arch/arm64/include/asm/pgtable.h
index 3eefc181d00b..b0ad16f05bcc 100644
--- a/arch/arm64/include/asm/pgtable.h
+++ b/arch/arm64/include/asm/pgtable.h
@@ -592,9 +592,9 @@ static inline pte_t ptep_get_and_clear(struct mm_struct *mm,
-static inline pmd_t pmdp_get_and_clear(struct mm_struct *mm,
- unsigned long address, pmd_t *pmdp)
+static inline pmd_t pmdp_huge_get_and_clear(struct mm_struct *mm,
+ unsigned long address, pmd_t *pmdp)
return pte_pmd(ptep_get_and_clear(mm, address, (pte_t *)pmdp));