|
@@ -585,6 +585,7 @@ void __init initmem_init(unsigned long start_pfn, unsigned long end_pfn)
|
|
|
early_res_to_bootmem(0, end_pfn<<PAGE_SHIFT);
|
|
|
reserve_bootmem(bootmap, bootmap_size, BOOTMEM_DEFAULT);
|
|
|
}
|
|
|
+#endif
|
|
|
|
|
|
void __init paging_init(void)
|
|
|
{
|
|
@@ -595,11 +596,14 @@ void __init paging_init(void)
|
|
|
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
|
|
|
max_zone_pfns[ZONE_NORMAL] = max_pfn;
|
|
|
|
|
|
+#ifdef CONFIG_NUMA
|
|
|
+ sparse_memory_present_with_active_regions(MAX_NUMNODES);
|
|
|
+#else
|
|
|
memory_present(0, 0, max_pfn);
|
|
|
+#endif
|
|
|
sparse_init();
|
|
|
free_area_init_nodes(max_zone_pfns);
|
|
|
}
|
|
|
-#endif
|
|
|
|
|
|
/*
|
|
|
* Memory hotplug specific functions
|