Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283515
b: refs/heads/master
c: 4c0b2e5
h: refs/heads/master
i:
  283513: fe05707
  283511: 569bb6d
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed Nov 11, 2011
1 parent 1f829ae commit 4a3de9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff14c1d01576fb839a925a42596582f6c68a1a1a
refs/heads/master: 4c0b2e5f8940fec7cbeafcf641fecd5e746329c5
9 changes: 7 additions & 2 deletions trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ void __init initmem_init(void)
}
#endif

void __init paging_init(void)
static void __init zone_sizes_init(void)
{
unsigned long max_zone_pfns[MAX_NR_ZONES];

Expand All @@ -623,6 +623,11 @@ void __init paging_init(void)
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
max_zone_pfns[ZONE_NORMAL] = max_pfn;

free_area_init_nodes(max_zone_pfns);
}

void __init paging_init(void)
{
sparse_memory_present_with_active_regions(MAX_NUMNODES);
sparse_init();

Expand All @@ -634,7 +639,7 @@ void __init paging_init(void)
*/
node_clear_state(0, N_NORMAL_MEMORY);

free_area_init_nodes(max_zone_pfns);
zone_sizes_init();
}

/*
Expand Down

0 comments on commit 4a3de9d

Please sign in to comment.