|
@@ -349,13 +349,13 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev,
|
|
if (node >= 0 && node != numa_node_id()) {
|
|
if (node >= 0 && node != numa_node_id()) {
|
|
int cpu;
|
|
int cpu;
|
|
|
|
|
|
- get_online_cpus();
|
|
|
|
|
|
+ cpu_hotplug_disable();
|
|
cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask);
|
|
cpu = cpumask_any_and(cpumask_of_node(node), cpu_online_mask);
|
|
if (cpu < nr_cpu_ids)
|
|
if (cpu < nr_cpu_ids)
|
|
error = work_on_cpu(cpu, local_pci_probe, &ddi);
|
|
error = work_on_cpu(cpu, local_pci_probe, &ddi);
|
|
else
|
|
else
|
|
error = local_pci_probe(&ddi);
|
|
error = local_pci_probe(&ddi);
|
|
- put_online_cpus();
|
|
|
|
|
|
+ cpu_hotplug_enable();
|
|
} else
|
|
} else
|
|
error = local_pci_probe(&ddi);
|
|
error = local_pci_probe(&ddi);
|
|
|
|
|