ACPI / NUMA: Move acpi_numa_arch_fixup() to ia64 only
authorRobert Richter <rrichter@cavium.com>
Tue, 24 May 2016 22:35:34 +0000 (15:35 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 30 May 2016 12:27:07 +0000 (14:27 +0200)
Since acpi_numa_arch_fixup() is only used in arch ia64, move it there
to make a generic interface easier. This avoids empty function stubs
or some complex kconfig options for x86 and arm64.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Reviewed-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
arch/ia64/include/asm/acpi.h
arch/ia64/kernel/acpi.c
arch/ia64/kernel/setup.c
arch/x86/mm/srat.c
drivers/acpi/numa.c
include/linux/acpi.h

index aa0fdf125aba7b4a6dd174887018980acde79391..a3d0211970e95e5152edbaeeecd8ab3a42041ac6 100644 (file)
@@ -140,6 +140,9 @@ static inline void per_cpu_scan_finalize(int min_cpus, int reserve_cpus)
                }
        }
 }
+
+extern void acpi_numa_fixup(void);
+
 #endif /* CONFIG_ACPI_NUMA */
 
 #endif /*__KERNEL__*/
index b1698bc042c8aacc63872d7568743fd9c5718f41..92b7bc956795ebe9074cbb42432342ae08de49e1 100644 (file)
@@ -524,7 +524,7 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma)
        return 0;
 }
 
-void __init acpi_numa_arch_fixup(void)
+void __init acpi_numa_fixup(void)
 {
        int i, j, node_from, node_to;
 
index 2029a38a72aeee89793d53ee60418567586d67ff..afddb3e80a2999bd26dbd309b440a41758345770 100644 (file)
@@ -552,6 +552,7 @@ setup_arch (char **cmdline_p)
        early_acpi_boot_init();
 # ifdef CONFIG_ACPI_NUMA
        acpi_numa_init();
+       acpi_numa_fixup();
 #  ifdef CONFIG_ACPI_HOTPLUG_CPU
        prefill_possible_map();
 #  endif
index b5f821881465dccf29f51bafa142580061719c1c..90b6ed9a00dc9222be1ecf21192156466343af81 100644 (file)
@@ -212,8 +212,6 @@ out_err:
        return -1;
 }
 
-void __init acpi_numa_arch_fixup(void) {}
-
 int __init x86_acpi_numa_init(void)
 {
        int ret;
index 6f1cad8d22a31607554d94231255f20249c4cd1a..fb2c0d61f252ab4bd1e24f4fc12208d3ee864260 100644 (file)
@@ -324,8 +324,6 @@ int __init acpi_numa_init(void)
        /* SLIT: System Locality Information Table */
        acpi_table_parse(ACPI_SIG_SLIT, acpi_parse_slit);
 
-       acpi_numa_arch_fixup();
-
        if (cnt < 0)
                return cnt;
        else if (!parsed_numa_memblks)
index 288fac5294f5e26aacfe97ac772d5f0247aa1dd2..8010b266e85637a7e1beced82c796ba440a10584 100644 (file)
@@ -237,7 +237,6 @@ void acpi_numa_slit_init (struct acpi_table_slit *slit);
 void acpi_numa_processor_affinity_init (struct acpi_srat_cpu_affinity *pa);
 void acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa);
 int acpi_numa_memory_affinity_init (struct acpi_srat_mem_affinity *ma);
-void acpi_numa_arch_fixup(void);
 
 #ifndef PHYS_CPUID_INVALID
 typedef u32 phys_cpuid_t;