memblock, bootmem: Round pfn properly for memory and reserved regions
[linux-2.6.git] / arch / powerpc / mm / numa.c
index 066fb44..74505b2 100644 (file)
@@ -811,8 +811,8 @@ static void __init setup_nonnuma(void)
               (top_of_ram - total_ram) >> 20);
 
        for_each_memblock(memory, reg) {
-               start_pfn = memblock_region_base_pfn(reg);
-               end_pfn = memblock_region_end_pfn(reg);
+               start_pfn = memblock_region_memory_base_pfn(reg);
+               end_pfn = memblock_region_memory_end_pfn(reg);
 
                fake_numa_create_new_node(end_pfn, &nid);
                add_active_range(nid, start_pfn, end_pfn);