Commit b57b63a2 authored by Jiang Liu's avatar Jiang Liu Committed by Linus Torvalds

mm/IA64: 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: Tony Luck <tony.luck@intel.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ce7549e1
...@@ -583,7 +583,6 @@ __setup("nolwsys", nolwsys_setup); ...@@ -583,7 +583,6 @@ __setup("nolwsys", nolwsys_setup);
void __init void __init
mem_init (void) mem_init (void)
{ {
pg_data_t *pgdat;
int i; int i;
BUG_ON(PTRS_PER_PGD * sizeof(pgd_t) != PAGE_SIZE); BUG_ON(PTRS_PER_PGD * sizeof(pgd_t) != PAGE_SIZE);
...@@ -601,15 +600,11 @@ mem_init (void) ...@@ -601,15 +600,11 @@ mem_init (void)
#ifdef CONFIG_FLATMEM #ifdef CONFIG_FLATMEM
BUG_ON(!mem_map); BUG_ON(!mem_map);
max_mapnr = max_low_pfn;
#endif #endif
set_max_mapnr(max_low_pfn);
high_memory = __va(max_low_pfn * PAGE_SIZE); high_memory = __va(max_low_pfn * PAGE_SIZE);
free_all_bootmem();
for_each_online_pgdat(pgdat)
if (pgdat->bdata->node_bootmem_map)
free_all_bootmem_node(pgdat);
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