sh: Disable 64kB hugetlbpage size when using 64kB PAGE_SIZE.

Presently we oops in mm/hugetlb.c:1325, which is the order == 0 test in
hugetlb_add_hstate() called at initialization time. So, disable 64kB
huge pages when we're using a 64kB PAGE_SIZE. On most parts this will
force the default to be 1MB huge pages.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+2
+2
arch/sh/mm/Kconfig
··· 181 181 choice 182 182 prompt "HugeTLB page size" 183 183 depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU 184 + default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB 184 185 default HUGETLB_PAGE_SIZE_64K 185 186 186 187 config HUGETLB_PAGE_SIZE_64K 187 188 bool "64kB" 189 + depends on !PAGE_SIZE_64KB 188 190 189 191 config HUGETLB_PAGE_SIZE_256K 190 192 bool "256kB"