diff options
Diffstat (limited to 'drivers/pci/pci-driver.c')
-rw-r--r-- | drivers/pci/pci-driver.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c index c0cbbb5a245e..d76c4c85367e 100644 --- a/drivers/pci/pci-driver.c +++ b/drivers/pci/pci-driver.c | |||
@@ -277,10 +277,9 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, | |||
277 | node = dev_to_node(&dev->dev); | 277 | node = dev_to_node(&dev->dev); |
278 | if (node >= 0) { | 278 | if (node >= 0) { |
279 | int cpu; | 279 | int cpu; |
280 | node_to_cpumask_ptr(nodecpumask, node); | ||
281 | 280 | ||
282 | get_online_cpus(); | 281 | get_online_cpus(); |
283 | cpu = cpumask_any_and(nodecpumask, cpu_online_mask); | 282 | cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask); |
284 | if (cpu < nr_cpu_ids) | 283 | if (cpu < nr_cpu_ids) |
285 | error = work_on_cpu(cpu, local_pci_probe, &ddi); | 284 | error = work_on_cpu(cpu, local_pci_probe, &ddi); |
286 | else | 285 | else |