summaryrefslogtreecommitdiffstats
path: root/arch/arm64/mm/hugetlbpage.c
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2016-11-09 17:52:21 +0100
committerCatalin Marinas <catalin.marinas@arm.com>2016-11-09 17:52:21 +0100
commit6ed0038d5ecb307298bbb04e74eb96c4a500ad1f (patch)
treeed7cefab12ff617f03d0227288ac6b4691137a0b /arch/arm64/mm/hugetlbpage.c
parentarm64: fix error: conflicting types for 'kprobe_fault_handler' (diff)
downloadlinux-6ed0038d5ecb307298bbb04e74eb96c4a500ad1f.tar.xz
linux-6ed0038d5ecb307298bbb04e74eb96c4a500ad1f.zip
arm64: Fix typo in add_default_hugepagesz() for 64K pages
The default hugepage size when 64K pages are enabled is set to 2MB using the contiguous PTE bit. The add_default_hugepagesz(), however, uses CONT_PMD_SHIFT instead of CONT_PTE_SHIFT. There is no functional change since the values are the same. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/mm/hugetlbpage.c')
-rw-r--r--arch/arm64/mm/hugetlbpage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c
index 2e49bd252fe7..0a4c97b618ec 100644
--- a/arch/arm64/mm/hugetlbpage.c
+++ b/arch/arm64/mm/hugetlbpage.c
@@ -323,7 +323,7 @@ __setup("hugepagesz=", setup_hugepagesz);
static __init int add_default_hugepagesz(void)
{
if (size_to_hstate(CONT_PTES * PAGE_SIZE) == NULL)
- hugetlb_add_hstate(CONT_PMD_SHIFT);
+ hugetlb_add_hstate(CONT_PTE_SHIFT);
return 0;
}
arch_initcall(add_default_hugepagesz);