diff mbox

[16/35] x86: make 64 bit use early_res instead of bootmem before slab

Message ID 4B785D85.3000408@kernel.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Yinghai Lu Feb. 14, 2010, 8:31 p.m. UTC
None
diff mbox

Patch

Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c
+++ linux-2.6/mm/page_alloc.c
@@ -3456,6 +3456,7 @@  int __init add_from_early_node_map(struc
 	return nr_range;
 }
 
+#ifdef CONFIG_NO_BOOTMEM
 void * __init __alloc_memory_core_early(int nid, u64 size, u64 align,
 					u64 goal, u64 limit)
 {
@@ -3492,6 +3493,7 @@  void * __init __alloc_memory_core_early(
 
 	return NULL;
 }
+#endif
 
 
 void __init work_with_active_regions(int nid, work_fn_t work_fn, void *data)