Skip to content

Commit 4ae279c

Browse files
kvaneeshmpe
authored andcommitted
powerpc/mm/hugetlb: Allow runtime allocation of 16G.
Now that we have GIGANTIC_PAGE enabled on powerpc, use this for 16G hugepages with hash translation mode. Depending on the total system memory we have, we may be able to allocate 16G hugepages runtime. This also remove the hugetlb setup difference between hash/radix translation mode. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 79cc38d commit 4ae279c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/powerpc/include/asm/book3s/64/hugetlb.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ static inline pte_t arch_make_huge_pte(pte_t entry, struct vm_area_struct *vma,
5454
#ifdef CONFIG_ARCH_HAS_GIGANTIC_PAGE
5555
static inline bool gigantic_page_supported(void)
5656
{
57-
if (radix_enabled())
58-
return true;
59-
return false;
57+
return true;
6058
}
6159
#endif
6260

0 commit comments

Comments
 (0)