git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] x86-64: Use ACPI PXM to parse PCI<->node assignments
[pandora-kernel.git]
/
arch
/
x86_64
/
pci
/
k8-bus.c
diff --git
a/arch/x86_64/pci/k8-bus.c
b/arch/x86_64/pci/k8-bus.c
index
d80c323
..
3acf60d
100644
(file)
--- a/
arch/x86_64/pci/k8-bus.c
+++ b/
arch/x86_64/pci/k8-bus.c
@@
-58,10
+58,16
@@
fill_mp_bus_to_cpumask(void)
for (j = SECONDARY_LDT_BUS_NUMBER(ldtbus);
j <= SUBORDINATE_LDT_BUS_NUMBER(ldtbus);
j++) {
for (j = SECONDARY_LDT_BUS_NUMBER(ldtbus);
j <= SUBORDINATE_LDT_BUS_NUMBER(ldtbus);
j++) {
- int node = NODE_ID(nid);
+ struct pci_bus *bus;
+ long node = NODE_ID(nid);
+ /* Algorithm a bit dumb, but
+ it shouldn't matter here */
+ bus = pci_find_bus(0, j);
+ if (!bus)
+ continue;
if (!node_online(node))
node = 0;
if (!node_online(node))
node = 0;
-
pci_bus_to_node[j] =
node;
+
bus->sysdata = (void *)
node;
}
}
}
}
}
}