diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index bdd5c432c426..63835579323a 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2862,8 +2862,6 @@ __meminit int init_currently_empty_zone(struct zone *zone, | |||
2862 | 2862 | ||
2863 | zone->zone_start_pfn = zone_start_pfn; | 2863 | zone->zone_start_pfn = zone_start_pfn; |
2864 | 2864 | ||
2865 | memmap_init(size, pgdat->node_id, zone_idx(zone), zone_start_pfn); | ||
2866 | |||
2867 | zone_init_free_lists(zone); | 2865 | zone_init_free_lists(zone); |
2868 | 2866 | ||
2869 | return 0; | 2867 | return 0; |
@@ -3433,6 +3431,7 @@ static void __paginginit free_area_init_core(struct pglist_data *pgdat, | |||
3433 | ret = init_currently_empty_zone(zone, zone_start_pfn, | 3431 | ret = init_currently_empty_zone(zone, zone_start_pfn, |
3434 | size, MEMMAP_EARLY); | 3432 | size, MEMMAP_EARLY); |
3435 | BUG_ON(ret); | 3433 | BUG_ON(ret); |
3434 | memmap_init(size, nid, j, zone_start_pfn); | ||
3436 | zone_start_pfn += size; | 3435 | zone_start_pfn += size; |
3437 | } | 3436 | } |
3438 | } | 3437 | } |