Skip to content

Commit

Permalink
PCI: use dev_to_node in pci_call_probe
Browse files Browse the repository at this point in the history
to make sure get one online node.

Signed-off-by: Yinghai Lu <yinghai.lu@sun.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Yinghai Lu authored and Thomas Gleixner committed May 24, 2008
1 parent a167607 commit 4efeb4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/pci-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev,
any need to change it. */
struct mempolicy *oldpol;
cpumask_t oldmask = current->cpus_allowed;
int node = pcibus_to_node(dev->bus);
int node = dev_to_node(&dev->dev);

if (node >= 0) {
node_to_cpumask_ptr(nodecpumask, node);
Expand Down

0 comments on commit 4efeb4d

Please sign in to comment.