x86: get max_pfn_mapped in init_memory_mapping
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 24 Jun 2008 21:56:20 +0000 (14:56 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 8 Jul 2008 11:10:35 +0000 (13:10 +0200)
so don't shift that in the loop

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init_64.c

index 9b6049133a821712bba7a6c856bb141293a6724a..359e3afaaa6b766ca9faeab23f8489e70b2c0296 100644 (file)
@@ -346,7 +346,7 @@ phys_pud_init(pud_t *pud_page, unsigned long addr, unsigned long end)
        __flush_tlb_all();
        update_page_count(PG_LEVEL_1G, pages);
 
-       return last_map_addr >> PAGE_SHIFT;
+       return last_map_addr;
 }
 
 static void __init find_early_table_space(unsigned long end)
@@ -556,7 +556,7 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, unsigned lon
        if (!after_bootmem)
                early_memtest(start_phys, end_phys);
 
-       return last_map_addr;
+       return last_map_addr >> PAGE_SHIFT;
 }
 
 #ifndef CONFIG_NUMA