Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99740
b: refs/heads/master
c: ea57a5a
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Jun 6, 2008
1 parent 1c4797a commit 787692f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 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: c45a707dbe35cb9aa6490223e5b1129fa3583948
refs/heads/master: ea57a5a6db8961de35cd1a4a80d8e01ee4307973
11 changes: 3 additions & 8 deletions trunk/arch/x86/kernel/srat_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,21 +240,16 @@ 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",
j, chunk->nid, chunk->start_pfn, chunk->end_pfn);
node_read_chunk(chunk->nid, chunk);
e820_register_active_regions(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);
memory_present(chunk->nid, chunk->start_pfn,
min(chunk->end_pfn, max_pfn));
}
return 1;
out_fail:
Expand Down

0 comments on commit 787692f

Please sign in to comment.