Skip to content

Commit

Permalink
mm/SH: 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: Paul Mundt <[email protected]>
Cc: Wen Congyang <[email protected]>
Cc: Tang Chen <[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 602ddc7 commit e3a466b
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions arch/sh/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,19 +412,11 @@ void __init mem_init(void)
iommu_init();

high_memory = NULL;
for_each_online_pgdat(pgdat)
high_memory = max_t(void *, high_memory,
__va(pgdat_end_pfn(pgdat) << PAGE_SHIFT));

for_each_online_pgdat(pgdat) {
void *node_high_memory;

if (pgdat->node_spanned_pages)
free_all_bootmem_node(pgdat);

node_high_memory = (void *)__va((pgdat->node_start_pfn +
pgdat->node_spanned_pages) <<
PAGE_SHIFT);
if (node_high_memory > high_memory)
high_memory = node_high_memory;
}
free_all_bootmem();

/* Set this up early, so we can take care of the zero page */
cpu_cache_init();
Expand Down

0 comments on commit e3a466b

Please sign in to comment.