diff options
Diffstat (limited to 'arch/powerpc/mm/mem.c')
-rw-r--r-- | arch/powerpc/mm/mem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c index 7f47a05f55af..3bcfc0d0d322 100644 --- a/arch/powerpc/mm/mem.c +++ b/arch/powerpc/mm/mem.c | |||
@@ -318,13 +318,12 @@ void __init mem_init(void) | |||
318 | for_each_online_node(nid) { | 318 | for_each_online_node(nid) { |
319 | if (NODE_DATA(nid)->node_spanned_pages != 0) { | 319 | if (NODE_DATA(nid)->node_spanned_pages != 0) { |
320 | printk("freeing bootmem node %d\n", nid); | 320 | printk("freeing bootmem node %d\n", nid); |
321 | totalram_pages += | 321 | free_all_bootmem_node(NODE_DATA(nid)); |
322 | free_all_bootmem_node(NODE_DATA(nid)); | ||
323 | } | 322 | } |
324 | } | 323 | } |
325 | #else | 324 | #else |
326 | max_mapnr = max_pfn; | 325 | max_mapnr = max_pfn; |
327 | totalram_pages += free_all_bootmem(); | 326 | free_all_bootmem(); |
328 | #endif | 327 | #endif |
329 | for_each_online_pgdat(pgdat) { | 328 | for_each_online_pgdat(pgdat) { |
330 | for (i = 0; i < pgdat->node_spanned_pages; i++) { | 329 | for (i = 0; i < pgdat->node_spanned_pages; i++) { |