提交 602ddc70 编写于 作者: J Jiang Liu 提交者: Linus Torvalds

mm/PPC: prepare for killing free_all_bootmem_node()

Prepare for killing free_all_bootmem_node() by using free_all_bootmem().
Signed-off-by: NJiang 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: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d5c017dd
......@@ -304,22 +304,8 @@ void __init mem_init(void)
#endif
high_memory = (void *) __va(max_low_pfn * PAGE_SIZE);
#ifdef CONFIG_NEED_MULTIPLE_NODES
{
pg_data_t *pgdat;
for_each_online_pgdat(pgdat)
if (pgdat->node_spanned_pages != 0) {
printk("freeing bootmem node %d\n",
pgdat->node_id);
free_all_bootmem_node(pgdat);
}
}
#else
max_mapnr = max_pfn;
set_max_mapnr(max_pfn);
free_all_bootmem();
#endif
#ifdef CONFIG_HIGHMEM
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册