architecture hooks for mem_map initialization
Subsystems (3)
PATCH 1/1 architecture hooks for mem_map initialization
This patch is from the IA64 tree, with minor cleanups from me.
Split out initialization of pgdat->node_mem_map into a separate function and allow architectures to override it. This is needed for HP IA64 machines that have a virtually mapped memory map to support big memory holes without having to use discontigmem.
(memmap_init_zone is non-static to allow the IA64 code to use it -
I did that instead of passing it's address into the arch hook as it is done currently in the IA64 tree)
include/linux/mm.h +2 -0
@@ -486,6 +486,8 @@extern void free_area_init_node (int nid,pg_data_t *pgdat,struct page *pmap,unsigned long * zones_size,unsigned long zone_start_pfn,unsigned long *zholes_size); +extern void memmap_init_zone (struct page *,unsigned long ,int , +unsigned long ,unsigned long );extern void mem_init (void );extern void show_mem (void );extern void si_meminfo (struct sysinfo * val);
mm/page_alloc.c +34 -26
90 lines not on this page · raw message
--
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>