pealing off zone from physical memory layout [5/10] register memory map
Subsystems (2)
RFC 1/1 pealing off zone from physical memory layout [5/10] register memory map
memory_map registlation in zone initialization.
Signed-off-by KAMEZAWA Hiroyuki <[email protected]>
mm/page_alloc.c +4 -0
@@ -37,6 +37,7 @@#include <linux/nodemask.h> #include <linux/vmalloc.h> #include <linux/mempolicy.h> +#include <linux/memorymap.h> #include <asm/tlbflush.h> #include "internal.h"
@@ -2014,6 +2015,7 @@ static __meminit void init_currently_empmemmap_init (size, pgdat->node_id,zone_idx (zone), zone_start_pfn);zone_init_free_lists (pgdat, zone, zone->spanned_pages); +arch_register_memory_zone (zone, zone_start_pfn, size); }/*
@@ -2029,6 +2031,8 @@ static void __init free_area_init_core(sint nid = pgdat->node_id;unsigned long zone_start_pfn = pgdat->node_start_pfn; +if (nid ==0 ) +setup_memory_map ();pgdat_resize_init (pgdat); pgdat->nr_zones =0 ;init_waitqueue_head (&pgdat->kswapd_wait);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>