aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi-ip27
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-07-03 18:04:30 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-07-03 19:07:39 -0400
commit629e7b4c8051f88daa7d2d53283128a4b2a6fa72 (patch)
tree64fdb72cb3a2d93e624d9d4734b224313eace347 /arch/mips/sgi-ip27
parent5ad62f24ba22543a3b35b4f28fafd80e55eda269 (diff)
mm/MIPS: prepare for killing free_all_bootmem_node()
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/mips/sgi-ip27')
-rw-r--r--arch/mips/sgi-ip27/ip27-memory.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c
index a0c9e34147c2..a95c00f5fb96 100644
--- a/arch/mips/sgi-ip27/ip27-memory.c
+++ b/arch/mips/sgi-ip27/ip27-memory.c
@@ -477,18 +477,8 @@ void __init paging_init(void)
477 477
478void __init mem_init(void) 478void __init mem_init(void)
479{ 479{
480 unsigned node;
481
482 high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); 480 high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
483 481 free_all_bootmem();
484 for_each_online_node(node) {
485 /*
486 * This will free up the bootmem, ie, slot 0 memory.
487 */
488 free_all_bootmem_node(NODE_DATA(node));
489 }
490
491 setup_zero_pages(); /* This comes from node 0 */ 482 setup_zero_pages(); /* This comes from node 0 */
492
493 mem_init_print_info(NULL); 483 mem_init_print_info(NULL);
494} 484}