diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-24 13:54:51 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-03 12:38:40 -0500 |
commit | 6616dbdf6d967c704830586d5ead35c9767a8431 (patch) | |
tree | e0b8220ccbd4bf13ff76e5027148fbba06b3e283 /arch | |
parent | afcf21c2beca6604dbdc24fed1624c2499a85e7d (diff) |
x86/PCI: Use x86_pci_root_bus_node() instead of get_mp_bus_to_node()
This replaces all uses of get_mp_bus_to_node() with x86_pci_root_bus_node().
I think these uses are all on root buses, except possibly for blind
probing, where NUMA node information is unimportant.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/pci/acpi.c | 2 | ||||
-rw-r--r-- | arch/x86/pci/common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 4f25ec077552..3f42c5c05bf6 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
@@ -503,7 +503,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) | |||
503 | set_mp_bus_to_node(busnum, node); | 503 | set_mp_bus_to_node(busnum, node); |
504 | else | 504 | else |
505 | #endif | 505 | #endif |
506 | node = get_mp_bus_to_node(busnum); | 506 | node = x86_pci_root_bus_node(busnum); |
507 | 507 | ||
508 | if (node != -1 && !node_online(node)) | 508 | if (node != -1 && !node_online(node)) |
509 | node = -1; | 509 | node = -1; |
diff --git a/arch/x86/pci/common.c b/arch/x86/pci/common.c index 600e5925f1a4..f7d6800f10d1 100644 --- a/arch/x86/pci/common.c +++ b/arch/x86/pci/common.c | |||
@@ -467,7 +467,7 @@ void pcibios_scan_root(int busnum) | |||
467 | printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum); | 467 | printk(KERN_ERR "PCI: OOM, skipping PCI bus %02x\n", busnum); |
468 | return; | 468 | return; |
469 | } | 469 | } |
470 | sd->node = get_mp_bus_to_node(busnum); | 470 | sd->node = x86_pci_root_bus_node(busnum); |
471 | x86_pci_root_bus_resources(busnum, &resources); | 471 | x86_pci_root_bus_resources(busnum, &resources); |
472 | printk(KERN_DEBUG "PCI: Probing PCI hardware (bus %02x)\n", busnum); | 472 | printk(KERN_DEBUG "PCI: Probing PCI hardware (bus %02x)\n", busnum); |
473 | bus = pci_scan_root_bus(NULL, busnum, &pci_root_ops, sd, &resources); | 473 | bus = pci_scan_root_bus(NULL, busnum, &pci_root_ops, sd, &resources); |