summaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-11-07 04:42:09 +0100
committerPaul Mackerras <paulus@samba.org>2005-11-07 04:42:09 +0100
commitc6135234550ed89a6fd0e8cb229633967e41d649 (patch)
tree22cef33e314839c4fb30d6fc888c0caa2a0f6602 /mm/hugetlb.c
parent[PATCH] powerpc: Make ppc_md.set_dabr non 64-bit specific (diff)
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/sam/kbuild (diff)
downloadlinux-c6135234550ed89a6fd0e8cb229633967e41d649.tar.xz
linux-c6135234550ed89a6fd0e8cb229633967e41d649.zip
Merge ../linux-2.6
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index c9b43360fd33..9a565808da3f 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -103,6 +103,9 @@ static int __init hugetlb_init(void)
unsigned long i;
struct page *page;
+ if (HPAGE_SHIFT == 0)
+ return 0;
+
for (i = 0; i < MAX_NUMNODES; ++i)
INIT_LIST_HEAD(&hugepage_freelists[i]);