Skip to content

Commit

Permalink
mm/m68k: 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: Geert Uytterhoeven <[email protected]>
Cc: Greg Ungerer <[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 c5c009f commit b69a978
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/m68k/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b69a978

Please sign in to comment.