From: Ingo Molnar Date: Mon, 9 Jun 2008 08:57:16 +0000 (+0200) Subject: Revert "x86, 32-bit: SRAT fix" X-Git-Tag: v2.6.27-rc1~1106^2~247^2~38 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=237749428552e2f81ec6c801482dfd8a777e470b;p=linux-2.6-omap-h63xx.git Revert "x86, 32-bit: SRAT fix" This reverts commit ea57a5a6db8961de35cd1a4a80d8e01ee4307973, a better fix will be merged. --- diff --git a/arch/x86/kernel/srat_32.c b/arch/x86/kernel/srat_32.c index 5eedd3fd4d4..32d8b114293 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) for (i = 0; i < MAX_APICID; i++) apicid_2_node[i] = pxm_to_node(apicid_to_pxm[i]); - remove_all_active_ranges(); for (j = 0; j < num_memory_chunks; j++){ struct node_memory_chunk_s * chunk = &node_memory_chunk[j]; 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) node_read_chunk(chunk->nid, chunk); e820_register_active_regions(chunk->nid, chunk->start_pfn, min(chunk->end_pfn, max_pfn)); - memory_present(chunk->nid, chunk->start_pfn, - min(chunk->end_pfn, max_pfn)); + } + + for_each_online_node(nid) { + unsigned long start = node_start_pfn[nid]; + unsigned long end = node_end_pfn[nid]; + + memory_present(nid, start, end); + node_remap_size[nid] = node_memmap_size_bytes(nid, start, end); } return 1; out_fail: