powerpc/mm: allow hugepages without hugepd
In preparation of implementing huge pages on powerpc 8xx without hugepd, enclose hugepd related code inside an ifdef CONFIG_ARCH_HAS_HUGEPD This also allows removing some stubs. Link: https://lkml.kernel.org/r/ada097ca8a4fa85a77f51719516ef2478800d77a.1719928057.git.christophe.leroy@csgroup.eu Signed-off-by:Christophe Leroy <christophe.leroy@csgroup.eu> Reviewed-by:
Oscar Salvador <osalvador@suse.de> Cc: Jason Gunthorpe <jgg@nvidia.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Nicholas Piggin <npiggin@gmail.com> Cc: Peter Xu <peterx@redhat.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org>
Showing
- arch/powerpc/Kconfig 0 additions, 1 deletionarch/powerpc/Kconfig
- arch/powerpc/include/asm/book3s/32/pgalloc.h 0 additions, 2 deletionsarch/powerpc/include/asm/book3s/32/pgalloc.h
- arch/powerpc/include/asm/hugetlb.h 2 additions, 8 deletionsarch/powerpc/include/asm/hugetlb.h
- arch/powerpc/include/asm/nohash/pgtable.h 1 addition, 1 deletionarch/powerpc/include/asm/nohash/pgtable.h
- arch/powerpc/mm/hugetlbpage.c 33 additions, 0 deletionsarch/powerpc/mm/hugetlbpage.c
- arch/powerpc/mm/pgtable.c 2 additions, 0 deletionsarch/powerpc/mm/pgtable.c
- arch/powerpc/platforms/Kconfig.cputype 3 additions, 0 deletionsarch/powerpc/platforms/Kconfig.cputype
Please register or sign in to comment