Skip to content

Commit b57b63a

Browse files
jiangliutorvalds
authored andcommitted
mm/IA64: prepare for killing free_all_bootmem_node()
Prepare for killing free_all_bootmem_node() by using free_all_bootmem(). Signed-off-by: Jiang 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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent ce7549e commit b57b63a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

arch/ia64/mm/init.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,6 @@ __setup("nolwsys", nolwsys_setup);
583583
void __init
584584
mem_init (void)
585585
{
586-
pg_data_t *pgdat;
587586
int i;
588587

589588
BUG_ON(PTRS_PER_PGD * sizeof(pgd_t) != PAGE_SIZE);
@@ -601,15 +600,11 @@ mem_init (void)
601600

602601
#ifdef CONFIG_FLATMEM
603602
BUG_ON(!mem_map);
604-
max_mapnr = max_low_pfn;
605603
#endif
606604

605+
set_max_mapnr(max_low_pfn);
607606
high_memory = __va(max_low_pfn * PAGE_SIZE);
608-
609-
for_each_online_pgdat(pgdat)
610-
if (pgdat->bdata->node_bootmem_map)
611-
free_all_bootmem_node(pgdat);
612-
607+
free_all_bootmem();
613608
mem_init_print_info(NULL);
614609

615610
/*

0 commit comments

Comments
 (0)