aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2013-01-21 16:20:44 -0500
committerBjorn Helgaas <bhelgaas@google.com>2013-01-25 15:45:04 -0500
commit7629d19a4df922e7497e170c1c7b508b5e27f486 (patch)
treea6acf96b6235ff1fda5664f9e751152e27735e2e
parenta3cb999dcfe48e234927b3a541810c15dd4a890e (diff)
PCI: Set pci_dev dev_node early so IOAPIC irq_descs are allocated locally
Otherwise irq_desc for PCI bridge with hot-added IOAPIC may not be allocated on the local node. Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/pci/probe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 2dcd22d9c816..b97dea5784ff 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1300,6 +1300,7 @@ void pci_device_add(struct pci_dev *dev, struct pci_bus *bus)
1300 dev->dev.release = pci_release_dev; 1300 dev->dev.release = pci_release_dev;
1301 pci_dev_get(dev); 1301 pci_dev_get(dev);
1302 1302
1303 set_dev_node(&dev->dev, pcibus_to_node(bus));
1303 dev->dev.dma_mask = &dev->dma_mask; 1304 dev->dev.dma_mask = &dev->dma_mask;
1304 dev->dev.dma_parms = &dev->dma_parms; 1305 dev->dev.dma_parms = &dev->dma_parms;
1305 dev->dev.coherent_dma_mask = 0xffffffffull; 1306 dev->dev.coherent_dma_mask = 0xffffffffull;