summaryrefslogtreecommitdiffstats
path: root/mm/page_alloc.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2008-07-31 09:07:30 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-08-01 21:46:41 +0200
commit0ef89d25d3e390dfa7c46772907951744a4067dc (patch)
tree768d97175d6df35408733f6fe40cf414b4ac75bd /mm/page_alloc.c
parentMissing symbol prefix on vmlinux.lds.h (diff)
downloadlinux-0ef89d25d3e390dfa7c46772907951744a4067dc.tar.xz
linux-0ef89d25d3e390dfa7c46772907951744a4067dc.zip
mm/hugetlb: don't crash when HPAGE_SHIFT is 0
Some platform decide whether they support huge pages at boot time. On these, such as powerpc, HPAGE_SHIFT is a variable, not a constant, and is set to 0 when there is no such support. The patches to introduce multiple huge pages support broke that causing the kernel to crash at boot time on machines such as POWER3 which lack support for multiple page sizes. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions