powerpc/mm: cleanup ifdef mess in add_huge_page_size()
Introduce a subarch specific helper check_and_get_huge_psize() to check the huge page sizes and cleanup the ifdef mess in add_huge_page_size() Signed-off-by:Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by:
Michael Ellerman <mpe@ellerman.id.au>
Showing
- arch/powerpc/include/asm/book3s/64/hugetlb.h 27 additions, 0 deletionsarch/powerpc/include/asm/book3s/64/hugetlb.h
- arch/powerpc/include/asm/nohash/32/hugetlb-8xx.h 5 additions, 0 deletionsarch/powerpc/include/asm/nohash/32/hugetlb-8xx.h
- arch/powerpc/include/asm/nohash/hugetlb-book3e.h 8 additions, 0 deletionsarch/powerpc/include/asm/nohash/hugetlb-book3e.h
- arch/powerpc/mm/hugetlbpage.c 3 additions, 34 deletionsarch/powerpc/mm/hugetlbpage.c
Please register or sign in to comment