Commit 629e7b4c authored by Jiang Liu's avatar Jiang Liu Committed by Linus Torvalds

mm/MIPS: prepare for killing free_all_bootmem_node()

Prepare for killing free_all_bootmem_node() by using free_all_bootmem().
Signed-off-by: default avatarJiang Liu <jiang.liu@huawei.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5ad62f24
...@@ -477,18 +477,8 @@ void __init paging_init(void) ...@@ -477,18 +477,8 @@ void __init paging_init(void)
void __init mem_init(void) void __init mem_init(void)
{ {
unsigned node;
high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT); high_memory = (void *) __va(get_num_physpages() << PAGE_SHIFT);
free_all_bootmem();
for_each_online_node(node) {
/*
* This will free up the bootmem, ie, slot 0 memory.
*/
free_all_bootmem_node(NODE_DATA(node));
}
setup_zero_pages(); /* This comes from node 0 */ setup_zero_pages(); /* This comes from node 0 */
mem_init_print_info(NULL); mem_init_print_info(NULL);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment