Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 145780
b: refs/heads/master
c: 3551f88
h: refs/heads/master
v: v3
  • Loading branch information
Pekka Enberg authored and Ingo Molnar committed May 11, 2009
1 parent c3b1cdc commit d0b084f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 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: 0964b0562bb9c93194e852b47bab2397b9e11c18
refs/heads/master: 3551f88f6439cf4da3f5a3747b320280e30500de
6 changes: 5 additions & 1 deletion trunk/arch/x86/mm/init_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,7 @@ void __init initmem_init(unsigned long start_pfn, unsigned long end_pfn)
early_res_to_bootmem(0, end_pfn<<PAGE_SHIFT);
reserve_bootmem(bootmap, bootmap_size, BOOTMEM_DEFAULT);
}
#endif

void __init paging_init(void)
{
Expand All @@ -595,11 +596,14 @@ void __init paging_init(void)
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
max_zone_pfns[ZONE_NORMAL] = max_pfn;

#ifdef CONFIG_NUMA
sparse_memory_present_with_active_regions(MAX_NUMNODES);
#else
memory_present(0, 0, max_pfn);
#endif
sparse_init();
free_area_init_nodes(max_zone_pfns);
}
#endif

/*
* Memory hotplug specific functions
Expand Down
15 changes: 0 additions & 15 deletions trunk/arch/x86/mm/numa_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,21 +578,6 @@ unsigned long __init numa_free_all_bootmem(void)
return pages;
}

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

memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
max_zone_pfns[ZONE_DMA] = MAX_DMA_PFN;
max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN;
max_zone_pfns[ZONE_NORMAL] = max_pfn;

sparse_memory_present_with_active_regions(MAX_NUMNODES);
sparse_init();

free_area_init_nodes(max_zone_pfns);
}

static __init int numa_setup(char *opt)
{
if (!opt)
Expand Down

0 comments on commit d0b084f

Please sign in to comment.