Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 99782
b: refs/heads/master
c: dbb6152
h: refs/heads/master
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 8, 2008
1 parent 5444678 commit 24e777f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: b755de8dfdfef97effaa91379ffafcb81f4d62a1
refs/heads/master: dbb6152e6f72df367f8a955586c5e6282a7255e5
14 changes: 8 additions & 6 deletions trunk/arch/x86/pci/acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,11 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
if (node != -1)
set_mp_bus_to_node(busnum, node);
else
#endif
node = get_mp_bus_to_node(busnum);

if (node != -1 && !node_online(node))
node = -1;
#endif

/* Allocate per-root-bus (not per bus) arch-specific data.
* TODO: leak; this memory is never freed.
Expand Down Expand Up @@ -207,14 +207,16 @@ struct pci_bus * __devinit pci_acpi_scan_root(struct acpi_device *device, int do
if (!bus)
kfree(sd);

if (bus && node != -1) {
#ifdef CONFIG_ACPI_NUMA
if (bus) {
if (pxm >= 0) {
if (pxm >= 0)
printk(KERN_DEBUG "bus %02x -> pxm %d -> node %d\n",
busnum, pxm, pxm_to_node(pxm));
}
}
busnum, pxm, node);
#else
printk(KERN_DEBUG "bus %02x -> node %d\n",
busnum, node);
#endif
}

if (bus && (pci_probe & PCI_USE__CRS))
get_current_resources(device, busnum, domain, bus);
Expand Down

0 comments on commit 24e777f

Please sign in to comment.