Commit 04a19429 authored by Sachin Sant's avatar Sachin Sant Committed by Michael Ellerman

powerpc/mm: Fix hugetlb page initialization

This patch fixes a regression by using correct kernel config variable
for HUGETLB_PAGE_SIZE_VARIABLE.

Without this huge pages are disabled during kernel boot.
[0.309496] hugetlbfs: disabling because there are no supported hugepage sizes

Fixes: c5710cd2 ("powerpc/mm: cleanup HPAGE_SHIFT setup")
Reported-by: default avatarSachin Sant <sachinp@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Tested-by: default avatarSachin Sant <sachinp@linux.ibm.com>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 6be6a8de
...@@ -640,7 +640,7 @@ static int __init hugetlbpage_init(void) ...@@ -640,7 +640,7 @@ static int __init hugetlbpage_init(void)
pgtable_cache_add(PTE_T_ORDER); pgtable_cache_add(PTE_T_ORDER);
} }
if (IS_ENABLED(HUGETLB_PAGE_SIZE_VARIABLE)) if (IS_ENABLED(CONFIG_HUGETLB_PAGE_SIZE_VARIABLE))
hugetlbpage_init_default(); hugetlbpage_init_default();
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment