summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/hugetlb.h
diff options
context:
space:
mode:
authorPunit Agrawal <punit.agrawal@arm.com>2017-08-22 13:42:47 +0300
committerCatalin Marinas <catalin.marinas@arm.com>2017-08-22 19:47:11 +0300
commita8d623eefd780288c0299f517da0845da687fbfc (patch)
treec4d91aa65923ab908f4e56459816ebee2607a9a5 /arch/arm64/include/asm/hugetlb.h
parentc3e4ed5c3d5d79af940eb24c810dddcec6d2b536 (diff)
downloadlinux-a8d623eefd780288c0299f517da0845da687fbfc.tar.xz
arm64: hugetlb: Override set_huge_swap_pte_at() to support contiguous hugepages
The default implementation of set_huge_swap_pte_at() does not support hugepages consisting of contiguous ptes. Override it to add support for contiguous hugepages. Signed-off-by: Punit Agrawal <punit.agrawal@arm.com> Cc: David Woods <dwoods@mellanox.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/hugetlb.h')
-rw-r--r--arch/arm64/include/asm/hugetlb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/hugetlb.h b/arch/arm64/include/asm/hugetlb.h
index df8c0aea0917..1dca41bea16a 100644
--- a/arch/arm64/include/asm/hugetlb.h
+++ b/arch/arm64/include/asm/hugetlb.h
@@ -84,6 +84,9 @@ extern void huge_ptep_clear_flush(struct vm_area_struct *vma,
extern void huge_pte_clear(struct mm_struct *mm, unsigned long addr,
pte_t *ptep, unsigned long sz);
#define huge_pte_clear huge_pte_clear
+extern void set_huge_swap_pte_at(struct mm_struct *mm, unsigned long addr,
+ pte_t *ptep, pte_t pte, unsigned long sz);
+#define set_huge_swap_pte_at set_huge_swap_pte_at
#include <asm-generic/hugetlb.h>