Skip to content

Commit

Permalink
mm/MIPS: prepare for killing free_all_bootmem_node()
Browse files Browse the repository at this point in the history
Prepare for killing free_all_bootmem_node() by using free_all_bootmem().

Signed-off-by: Jiang Liu <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Minchan Kim <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jiangliu authored and torvalds committed Jul 3, 2013
1 parent 5ad62f2 commit 629e7b4
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions arch/mips/sgi-ip27/ip27-memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 629e7b4

Please sign in to comment.