mm: concentrate modification of totalram_pages into the mm core
[linux-2.6-block.git] / arch / arm / mm / init.c
index 2070651c1bb4adeed368598456392d8a6c625546..06e9ce17d1d28869581ee8b0d13772bb951ee1ea 100644 (file)
@@ -596,8 +596,7 @@ void __init mem_init(void)
 
        /* this will put all unused low memory onto the freelists */
        free_unused_memmap(&meminfo);
-
-       totalram_pages += free_all_bootmem();
+       free_all_bootmem();
 
 #ifdef CONFIG_SA1111
        /* now that our DMA memory is actually so designated, we can free it */