mm: concentrate modification of totalram_pages into the mm core
[linux-2.6-block.git] / arch / sparc / mm / init_64.c
index 8269deb84edac7cc6b6fafa25b35723c5412e7b5..752d73837f9ecd7d31d1e9d25cacc24a2fe9d3a4 100644 (file)
@@ -2061,7 +2061,7 @@ void __init mem_init(void)
        high_memory = __va(last_valid_pfn << PAGE_SHIFT);
 
        register_page_bootmem_info();
-       totalram_pages = free_all_bootmem();
+       free_all_bootmem();
 
        /* We subtract one to account for the mem_map_zero page
         * allocated below.