Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27034
b: refs/heads/master
c: 0d01532
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Yeisley authored and Linus Torvalds committed May 31, 2006
1 parent 81989c2 commit 43c2f09
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 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: b2468e525f29882f866cb0b832956e69328f9647
refs/heads/master: 0d01532451710110a93891ae152d1dd1ee006ccf
4 changes: 4 additions & 0 deletions trunk/arch/x86_64/kernel/pci-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ dma_alloc_pages(struct device *dev, gfp_t gfp, unsigned order)
else
#endif
node = numa_node_id();

if (node < first_node(node_online_map))
node = first_node(node_online_map);

page = alloc_pages_node(node, gfp, order);
return page ? page_address(page) : NULL;
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ static void srat_detect_node(void)
for now. */
node = apicid_to_node[hard_smp_processor_id()];
if (node == NUMA_NO_NODE)
node = 0;
node = first_node(node_online_map);
numa_set_node(cpu, node);

if (acpi_numa > 0)
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/x86_64/mm/srat.c
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,10 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end)
/* First clean up the node list */
for (i = 0; i < MAX_NUMNODES; i++) {
cutoff_node(i, start, end);
if ((nodes[i].end - nodes[i].start) < NODE_MIN_SIZE)
if ((nodes[i].end - nodes[i].start) < NODE_MIN_SIZE) {
unparse_node(i);
node_set_offline(i);
}
}

if (acpi_numa <= 0)
Expand Down

0 comments on commit 43c2f09

Please sign in to comment.