Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 245700
b: refs/heads/master
c: 797390d
h: refs/heads/master
v: v3
  • Loading branch information
Tejun Heo committed May 2, 2011
1 parent 7074cdf commit 8ccca92
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 11 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: 84914ed0ec6787d38e84b510f92ad4ca3a572fd8
refs/heads/master: 797390d8554b1e07aabea37d0140933b0412dba0
2 changes: 0 additions & 2 deletions trunk/arch/x86/kernel/apic/numaq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ static inline void numaq_register_node(int node, struct sys_cfg_data *scd)

memblock_x86_register_active_regions(node, node_start_pfn[node],
node_end_pfn[node]);

memory_present(node, node_start_pfn[node], node_end_pfn[node]);
}

/*
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/x86/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ void __init paging_init(void)
* NOTE: at this point the bootmem allocator is fully available.
*/
olpc_dt_build_devicetree();
sparse_memory_present_with_active_regions(MAX_NUMNODES);
sparse_init();
zone_sizes_init();
}
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/x86/mm/numa_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ int __init get_memcfg_numa_flat(void)
node_start_pfn[0] = 0;
node_end_pfn[0] = max_pfn;
memblock_x86_register_active_regions(0, 0, max_pfn);
memory_present(0, 0, max_pfn);

/* Indicate there is one node available. */
nodes_clear(node_online_map);
Expand Down
8 changes: 1 addition & 7 deletions trunk/arch/x86/mm/srat_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static __init int node_read_chunk(int nid, struct node_memory_chunk_s *memory_ch

int __init get_memcfg_from_srat(void)
{
int i, j, nid;
int i, j;

if (srat_disabled())
goto out_fail;
Expand Down Expand Up @@ -273,12 +273,6 @@ int __init get_memcfg_from_srat(void)
/* for out of order entries in SRAT */
sort_node_map();

for_each_online_node(nid) {
unsigned long start = node_start_pfn[nid];
unsigned long end = min(node_end_pfn[nid], max_pfn);

memory_present(nid, start, end);
}
return 1;
out_fail:
printk(KERN_DEBUG "failed to get NUMA memory information from SRAT"
Expand Down

0 comments on commit 8ccca92

Please sign in to comment.