From: Jiang Liu Date: Thu, 27 Jun 2013 23:52:04 +0000 (+1000) Subject: mm/m68k: prepare for killing free_all_bootmem_node() X-Git-Tag: next-20130628~3^2~450 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5a7e4cc54c50445c6327dcdae0f4bdaac730c047;p=karo-tx-linux.git mm/m68k: prepare for killing free_all_bootmem_node() Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang Liu Cc: Geert Uytterhoeven Cc: Greg Ungerer Signed-off-by: Andrew Morton --- diff --git a/arch/m68k/mm/init.c b/arch/m68k/mm/init.c index 397a8848f067..6e0a93869ec9 100644 --- a/arch/m68k/mm/init.c +++ b/arch/m68k/mm/init.c @@ -148,12 +148,10 @@ void __init print_memmap(void) void __init mem_init(void) { - pg_data_t *pgdat; int i; /* this will put all memory onto the freelists */ - for_each_online_pgdat(pgdat) - free_all_bootmem_node(pgdat); + free_all_bootmem(); #if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE) /* insert pointer tables allocated so far into the tablelist */