diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2014-01-24 16:40:46 -0500 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-02-03 12:39:03 -0500 |
commit | ab6ffce35b2cd1f558fce954d38a7ee7ffa9c415 (patch) | |
tree | a3c90948fd0a1b12cd9b20cfc47be640ddec7f10 | |
parent | 8a3d01c740ab5ce141af8ddeef23cecaa51d2710 (diff) |
x86/PCI: Remove acpi_get_pxm() usage
The PCI host bridge code doesn't care about _PXM values directly; it only
needs to know what NUMA node the hardware is on.
This uses acpi_get_node() directly and removes the _PXM stuff.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | arch/x86/pci/acpi.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c index 6304ea0f426d..f44a64c74e37 100644 --- a/arch/x86/pci/acpi.c +++ b/arch/x86/pci/acpi.c | |||
@@ -480,9 +480,6 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) | |||
480 | struct pci_bus *bus = NULL; | 480 | struct pci_bus *bus = NULL; |
481 | struct pci_sysdata *sd; | 481 | struct pci_sysdata *sd; |
482 | int node; | 482 | int node; |
483 | #ifdef CONFIG_ACPI_NUMA | ||
484 | int pxm; | ||
485 | #endif | ||
486 | 483 | ||
487 | if (pci_ignore_seg) | 484 | if (pci_ignore_seg) |
488 | domain = 0; | 485 | domain = 0; |
@@ -494,12 +491,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) | |||
494 | return NULL; | 491 | return NULL; |
495 | } | 492 | } |
496 | 493 | ||
497 | node = NUMA_NO_NODE; | 494 | node = acpi_get_node(device->handle); |
498 | #ifdef CONFIG_ACPI_NUMA | ||
499 | pxm = acpi_get_pxm(device->handle); | ||
500 | if (pxm >= 0) | ||
501 | node = pxm_to_node(pxm); | ||
502 | #endif | ||
503 | if (node == NUMA_NO_NODE) | 495 | if (node == NUMA_NO_NODE) |
504 | node = x86_pci_root_bus_node(busnum); | 496 | node = x86_pci_root_bus_node(busnum); |
505 | 497 | ||
@@ -570,15 +562,8 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) | |||
570 | pcie_bus_configure_settings(child); | 562 | pcie_bus_configure_settings(child); |
571 | } | 563 | } |
572 | 564 | ||
573 | if (bus && node != NUMA_NO_NODE) { | 565 | if (bus && node != NUMA_NO_NODE) |
574 | #ifdef CONFIG_ACPI_NUMA | ||
575 | if (pxm >= 0) | ||
576 | dev_printk(KERN_DEBUG, &bus->dev, | ||
577 | "on NUMA node %d (pxm %d)\n", node, pxm); | ||
578 | #else | ||
579 | dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node); | 566 | dev_printk(KERN_DEBUG, &bus->dev, "on NUMA node %d\n", node); |
580 | #endif | ||
581 | } | ||
582 | 567 | ||
583 | return bus; | 568 | return bus; |
584 | } | 569 | } |