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

mm/m68k: 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: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c5c009fb
...@@ -148,12 +148,10 @@ void __init print_memmap(void) ...@@ -148,12 +148,10 @@ void __init print_memmap(void)
void __init mem_init(void) void __init mem_init(void)
{ {
pg_data_t *pgdat;
int i; int i;
/* this will put all memory onto the freelists */ /* this will put all memory onto the freelists */
for_each_online_pgdat(pgdat) free_all_bootmem();
free_all_bootmem_node(pgdat);
#if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE) #if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
/* insert pointer tables allocated so far into the tablelist */ /* insert pointer tables allocated so far into the tablelist */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册