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>
This commit is contained in:
Paul Mundt 2008-08-06 15:10:49 +09:00
Родитель d09d328c11
Коммит 68b7c24cf9
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -181,10 +181,12 @@ config ENTRY_OFFSET
choice choice
prompt "HugeTLB page size" prompt "HugeTLB page size"
depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU depends on HUGETLB_PAGE && (CPU_SH4 || CPU_SH5) && MMU
default HUGETLB_PAGE_SIZE_1MB if PAGE_SIZE_64KB
default HUGETLB_PAGE_SIZE_64K default HUGETLB_PAGE_SIZE_64K
config HUGETLB_PAGE_SIZE_64K config HUGETLB_PAGE_SIZE_64K
bool "64kB" bool "64kB"
depends on !PAGE_SIZE_64KB
config HUGETLB_PAGE_SIZE_256K config HUGETLB_PAGE_SIZE_256K
bool "256kB" bool "256kB"