aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-03 18:04:32 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:07:39 -0400
commit602ddc70ecf710e0cf512862473eac52524ec081 (patch)
tree0b2b83c7ce7381f61165547dae355f6403af8ee7 /arch/powerpc/mm
parentd5c017dde4ea0932f861d3ddf2b2ade92ee3d033 (diff)
mm/PPC: prepare for killing free_all_bootmem_node()
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Alexander Graf <agraf@suse.de> Cc: "Suzuki K. Poulose" <suzuki@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/mem.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 49c18b60bbb4..1cb1ea133a2c 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -304,22 +304,8 @@ void __init mem_init(void)
304#endif 304#endif
305 305
306 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE); 306 high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
307 307 set_max_mapnr(max_pfn);
308#ifdef CONFIG_NEED_MULTIPLE_NODES
309 {
310 pg_data_t *pgdat;
311
312 for_each_online_pgdat(pgdat)
313 if (pgdat->node_spanned_pages != 0) {
314 printk("freeing bootmem node %d\n",
315 pgdat->node_id);
316 free_all_bootmem_node(pgdat);
317 }
318 }
319#else
320 max_mapnr = max_pfn;
321 free_all_bootmem(); 308 free_all_bootmem();
322#endif
323 309
324#ifdef CONFIG_HIGHMEM 310#ifdef CONFIG_HIGHMEM
325 { 311 {