]> err.no Git - linux-2.6/blobdiff - arch/x86_64/pci/k8-bus.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/roland...
[linux-2.6] / arch / x86_64 / pci / k8-bus.c
index d80c323669e0c5e741a33f8c5700b2c8b8784007..9cc813e29706d3febdd70aacf5b4aa2d6e4940af 100644 (file)
@@ -58,10 +58,20 @@ fill_mp_bus_to_cpumask(void)
                                for (j = SECONDARY_LDT_BUS_NUMBER(ldtbus);
                                     j <= SUBORDINATE_LDT_BUS_NUMBER(ldtbus);
                                     j++) { 
-                                       int node = NODE_ID(nid);
+                                       struct pci_bus *bus;
+                                       struct pci_sysdata *sd;
+
+                                       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;
-                                       pci_bus_to_node[j] = node;
+
+                                       sd = bus->sysdata;
+                                       sd->node = node;
                                }               
                        }
                }