]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/m68k: prepare for killing free_all_bootmem_node()
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:52:04 +0000 (09:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:52 +0000 (16:37 +1000)
Prepare for killing free_all_bootmem_node() by using free_all_bootmem().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/m68k/mm/init.c

index 397a8848f06702c84d1b86fa885898203737162e..6e0a93869ec9fecee31751e02e43e95bfd3fca79 100644 (file)
@@ -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 */