Skip to content

Commit

Permalink
powerpc/mm: Fix hugetlb page initialization
Browse files Browse the repository at this point in the history
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: c5710cd ("powerpc/mm: cleanup HPAGE_SHIFT setup")
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Reviewed-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
  • Loading branch information
Sachin Sant authored and Michael Ellerman committed May 6, 2019
1 parent 6be6a8d commit 04a1942
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/hugetlbpage.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ static int __init hugetlbpage_init(void)
pgtable_cache_add(PTE_T_ORDER);
}

if (IS_ENABLED(HUGETLB_PAGE_SIZE_VARIABLE))
if (IS_ENABLED(CONFIG_HUGETLB_PAGE_SIZE_VARIABLE))
hugetlbpage_init_default();

return 0;
Expand Down

0 comments on commit 04a1942

Please sign in to comment.