aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/hp
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2014-01-24 17:28:42 -0500
committerBjorn Helgaas <bhelgaas@google.com>2014-02-03 12:39:22 -0500
commitb1e9cee7f68620fa2a020e35b5fbe3c4cc780e84 (patch)
treecdedb0185b3602f2a8b8a96e00c4ff43619cbec6 /arch/ia64/hp
parent10ee3d7032562d6094d3ee7de84af93fcc0250c7 (diff)
ia64: Remove acpi_get_pxm() usage
The IOMMU, LSAPIC, IOSAPIC, and 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>
Diffstat (limited to 'arch/ia64/hp')
-rw-r--r--arch/ia64/hp/common/sba_iommu.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/ia64/hp/common/sba_iommu.c b/arch/ia64/hp/common/sba_iommu.c
index a52d6b49b7ce..007361d59aa6 100644
--- a/arch/ia64/hp/common/sba_iommu.c
+++ b/arch/ia64/hp/common/sba_iommu.c
@@ -2017,31 +2017,19 @@ sba_connect_bus(struct pci_bus *bus)
2017 printk(KERN_WARNING "No IOC for PCI Bus %04x:%02x in ACPI\n", pci_domain_nr(bus), bus->number); 2017 printk(KERN_WARNING "No IOC for PCI Bus %04x:%02x in ACPI\n", pci_domain_nr(bus), bus->number);
2018} 2018}
2019 2019
2020#ifdef CONFIG_NUMA
2021static void __init 2020static void __init
2022sba_map_ioc_to_node(struct ioc *ioc, acpi_handle handle) 2021sba_map_ioc_to_node(struct ioc *ioc, acpi_handle handle)
2023{ 2022{
2023#ifdef CONFIG_NUMA
2024 unsigned int node; 2024 unsigned int node;
2025 int pxm;
2026
2027 ioc->node = NUMA_NO_NODE;
2028
2029 pxm = acpi_get_pxm(handle);
2030
2031 if (pxm < 0)
2032 return;
2033 2025
2034 node = pxm_to_node(pxm); 2026 node = acpi_get_node(handle);
2035 2027 if (node != NUMA_NO_NODE && !node_online(node))
2036 if (node == NUMA_NO_NODE || !node_online(node)) 2028 node = NUMA_NO_NODE;
2037 return;
2038 2029
2039 ioc->node = node; 2030 ioc->node = node;
2040 return;
2041}
2042#else
2043#define sba_map_ioc_to_node(ioc, handle)
2044#endif 2031#endif
2032}
2045 2033
2046static int __init 2034static int __init
2047acpi_sba_ioc_add(struct acpi_device *device, 2035acpi_sba_ioc_add(struct acpi_device *device,