arm64: Fix typo in add_default_hugepagesz() for 64K pages
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 9 Nov 2016 16:52:21 +0000 (16:52 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 9 Nov 2016 16:52:21 +0000 (16:52 +0000)
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>
arch/arm64/mm/hugetlbpage.c

index 2e49bd252fe7643adb66906e2381159b60949520..0a4c97b618eca5b2c3ca58bcf89750a2ae02c1a0 100644 (file)
@@ -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);