]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/MIPS: prepare for killing free_all_bootmem_node()
authorJiang Liu <liuj97@gmail.com>
Wed, 19 Jun 2013 00:06:37 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:23 +0000 (17:13 +1000)
Prepare for killing free_all_bootmem_node() by using free_all_bootmem().

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/mips/sgi-ip27/ip27-memory.c

index a0c9e34147c2f09a4dae9fc045b5da3824d4d8b4..a95c00f5fb9697ed90fa79d44ec887b498f680fc 100644 (file)
@@ -477,18 +477,8 @@ void __init paging_init(void)
 
 void __init mem_init(void)
 {
-       unsigned node;
-
        high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
-
-       for_each_online_node(node) {
-               /*
-                * This will free up the bootmem, ie, slot 0 memory.
-                */
-               free_all_bootmem_node(NODE_DATA(node));
-       }
-
+       free_all_bootmem();
        setup_zero_pages();     /* This comes from node 0 */
-
        mem_init_print_info(NULL);
 }