powerpc/mm: cleanup HPAGE_SHIFT setup
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 26 Apr 2019 05:59:48 +0000 (05:59 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 May 2019 15:20:24 +0000 (01:20 +1000)
commitc5710cd20735037ba9be0e95530f0d3795ce07e6
tree045e2e4b5ce52e3e4ef8a14d4d8bd38cd6b4ae46
parent45d0ba527b575d47b2be75dd517b57cceda04bfe
powerpc/mm: cleanup HPAGE_SHIFT setup

Only book3s/64 may select default among several HPAGE_SHIFT at runtime.
8xx always defines 512K pages as default
FSL_BOOK3E always defines 4M pages as default

This patch limits HUGETLB_PAGE_SIZE_VARIABLE to book3s/64
moves the definitions in subarches files.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/include/asm/hugetlb.h
arch/powerpc/include/asm/page.h
arch/powerpc/mm/book3s64/hash_hugetlbpage.c
arch/powerpc/mm/hugetlbpage.c