Commit 04bc48de authored by William Lee Irwin III's avatar William Lee Irwin III Committed by Linus Torvalds

[PATCH] Missing free_area_init_node() conversions

Update architectures for the free_area_init_node() API change.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 6f8df09c
...@@ -305,8 +305,8 @@ void __init paging_init(struct meminfo *mi) ...@@ -305,8 +305,8 @@ void __init paging_init(struct meminfo *mi)
(bdata->node_boot_start >> PAGE_SHIFT); (bdata->node_boot_start >> PAGE_SHIFT);
if (!zone_size[0]) if (!zone_size[0])
BUG(); BUG();
pgdat->node_mem_map = NULL;
free_area_init_node(0, pgdat, 0, zone_size, free_area_init_node(0, pgdat, zone_size,
bdata->node_boot_start >> PAGE_SHIFT, zhole_size); bdata->node_boot_start >> PAGE_SHIFT, zhole_size);
mem_map = NODE_DATA(0)->node_mem_map; mem_map = NODE_DATA(0)->node_mem_map;
......
...@@ -183,7 +183,7 @@ paging_init(void) ...@@ -183,7 +183,7 @@ paging_init(void)
* mem_map page array. * mem_map page array.
*/ */
free_area_init_node(0, &contig_page_data, 0, zones_size, PAGE_OFFSET >> PAGE_SHIFT, 0); free_area_init_node(0, &contig_page_data, zones_size, PAGE_OFFSET >> PAGE_SHIFT, 0);
mem_map = contig_page_data.node_mem_map; mem_map = contig_page_data.node_mem_map;
} }
......
...@@ -442,7 +442,6 @@ void __init paging_init(void) ...@@ -442,7 +442,6 @@ void __init paging_init(void)
{ {
unsigned long zones_size[MAX_NR_ZONES]; unsigned long zones_size[MAX_NR_ZONES];
unsigned long zholes_size[MAX_NR_ZONES]; unsigned long zholes_size[MAX_NR_ZONES];
struct page *node_mem_map;
int nid; int nid;
memset(zones_size, 0, sizeof(zones_size)); memset(zones_size, 0, sizeof(zones_size));
...@@ -469,11 +468,11 @@ void __init paging_init(void) ...@@ -469,11 +468,11 @@ void __init paging_init(void)
* in free_area_init_node (which will fail). * in free_area_init_node (which will fail).
*/ */
if (!node_data[nid].node_spanned_pages) if (!node_data[nid].node_spanned_pages)
node_mem_map = alloc_bootmem(sizeof(struct page)); NODE_DATA(nid)->node_mem_map
= alloc_bootmem(sizeof(struct page));
else else
node_mem_map = NULL; NODE_DATA(nid)->node_mem_map = NULL;
free_area_init_node(nid, NODE_DATA(nid), zones_size,
free_area_init_node(nid, NODE_DATA(nid), node_mem_map, start_pfn, zholes_size);
zones_size, start_pfn, zholes_size);
} }
} }
...@@ -214,8 +214,8 @@ void __init paging_init(void) ...@@ -214,8 +214,8 @@ void __init paging_init(void)
*/ */
disable_mmu(); disable_mmu();
#endif #endif
NODE_DATA(0)->node_mem_map = NULL;
free_area_init_node(0, NODE_DATA(0), 0, zones_size, __MEMORY_START >> PAGE_SHIFT, 0); free_area_init_node(0, NODE_DATA(0), zones_size, __MEMORY_START >> PAGE_SHIFT, 0);
/* XXX: MRB-remove - this doesn't seem sane, should this be done somewhere else ?*/ /* XXX: MRB-remove - this doesn't seem sane, should this be done somewhere else ?*/
mem_map = NODE_DATA(0)->node_mem_map; mem_map = NODE_DATA(0)->node_mem_map;
......
...@@ -122,8 +122,8 @@ void __init paging_init(void) ...@@ -122,8 +122,8 @@ void __init paging_init(void)
* All memory is good as ZONE_NORMAL (fall-through) and ZONE_DMA. * All memory is good as ZONE_NORMAL (fall-through) and ZONE_DMA.
*/ */
zones_size[ZONE_DMA] = MAX_LOW_PFN - START_PFN; zones_size[ZONE_DMA] = MAX_LOW_PFN - START_PFN;
NODE_DATA(0)->node_mem_map = NULL;
free_area_init_node(0, NODE_DATA(0), 0, zones_size, __MEMORY_START >> PAGE_SHIFT, 0); free_area_init_node(0, NODE_DATA(0), zones_size, __MEMORY_START >> PAGE_SHIFT, 0);
/* XXX: MRB-remove - this doesn't seem sane, should this be done somewhere else ?*/ /* XXX: MRB-remove - this doesn't seem sane, should this be done somewhere else ?*/
mem_map = NODE_DATA(0)->node_mem_map; mem_map = NODE_DATA(0)->node_mem_map;
......
...@@ -280,8 +280,8 @@ init_mem_alloc (unsigned long ram_start, unsigned long ram_len) ...@@ -280,8 +280,8 @@ init_mem_alloc (unsigned long ram_start, unsigned long ram_len)
#if ((PAGE_OFFSET >> PAGE_SHIFT) & ((1UL << (MAX_ORDER - 1)) - 1)) #if ((PAGE_OFFSET >> PAGE_SHIFT) & ((1UL << (MAX_ORDER - 1)) - 1))
#error MAX_ORDER is too large for given PAGE_OFFSET (use CONFIG_FORCE_MAX_ZONEORDER to change it) #error MAX_ORDER is too large for given PAGE_OFFSET (use CONFIG_FORCE_MAX_ZONEORDER to change it)
#endif #endif
NODE_DATA(0)->node_mem_map = NULL;
free_area_init_node (0, NODE_DATA(0), 0, zones_size, free_area_init_node (0, NODE_DATA(0), zones_size,
ADDR_TO_PAGE (PAGE_OFFSET), 0); ADDR_TO_PAGE (PAGE_OFFSET), 0);
mem_map = NODE_DATA(0)->node_mem_map; mem_map = NODE_DATA(0)->node_mem_map;
} }
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