aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/srat_32.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-06-09 04:57:16 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-09 04:57:16 -0400
commit237749428552e2f81ec6c801482dfd8a777e470b (patch)
treed9299dc6c099cc91c7a00370515146e3999ae5d5 /arch/x86/kernel/srat_32.c
parentea57a5a6db8961de35cd1a4a80d8e01ee4307973 (diff)
Revert "x86, 32-bit: SRAT fix"
This reverts commit ea57a5a6db8961de35cd1a4a80d8e01ee4307973, a better fix will be merged.
Diffstat (limited to 'arch/x86/kernel/srat_32.c')
-rw-r--r--arch/x86/kernel/srat_32.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/arch/x86/kernel/srat_32.c b/arch/x86/kernel/srat_32.c
index 5eedd3fd4d49..32d8b1142938 100644
--- a/arch/x86/kernel/srat_32.c
+++ b/arch/x86/kernel/srat_32.c
@@ -240,7 +240,6 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
240 for (i = 0; i < MAX_APICID; i++) 240 for (i = 0; i < MAX_APICID; i++)
241 apicid_2_node[i] = pxm_to_node(apicid_to_pxm[i]); 241 apicid_2_node[i] = pxm_to_node(apicid_to_pxm[i]);
242 242
243 remove_all_active_ranges();
244 for (j = 0; j < num_memory_chunks; j++){ 243 for (j = 0; j < num_memory_chunks; j++){
245 struct node_memory_chunk_s * chunk = &node_memory_chunk[j]; 244 struct node_memory_chunk_s * chunk = &node_memory_chunk[j];
246 printk("chunk %d nid %d start_pfn %08lx end_pfn %08lx\n", 245 printk("chunk %d nid %d start_pfn %08lx end_pfn %08lx\n",
@@ -248,8 +247,14 @@ static int __init acpi20_parse_srat(struct acpi_table_srat *sratp)
248 node_read_chunk(chunk->nid, chunk); 247 node_read_chunk(chunk->nid, chunk);
249 e820_register_active_regions(chunk->nid, chunk->start_pfn, 248 e820_register_active_regions(chunk->nid, chunk->start_pfn,
250 min(chunk->end_pfn, max_pfn)); 249 min(chunk->end_pfn, max_pfn));
251 memory_present(chunk->nid, chunk->start_pfn, 250 }
252 min(chunk->end_pfn, max_pfn)); 251
252 for_each_online_node(nid) {
253 unsigned long start = node_start_pfn[nid];
254 unsigned long end = node_end_pfn[nid];
255
256 memory_present(nid, start, end);
257 node_remap_size[nid] = node_memmap_size_bytes(nid, start, end);
253 } 258 }
254 return 1; 259 return 1;
255out_fail: 260out_fail: