diff options
author | David Daney <david.daney@cavium.com> | 2016-05-24 18:35:39 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-30 08:27:08 -0400 |
commit | e84025e274e66986277e11f0dda03373e246ffad (patch) | |
tree | 7a1e6837909c3e2b9590ed2f35fd60aaca32f858 /arch/x86/mm | |
parent | 2faeff1d507c21d262e8afca862243909970d567 (diff) |
ACPI / NUMA: move bad_srat() and srat_disabled() to drivers/acpi/numa.c
bad_srat() and srat_disabled() are shared by x86 and follow-on arm64
patches. Move them to drivers/acpi/numa.c in preparation for arm64
support.
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Robert Richter <rrichter@cavium.com>
[david.daney@cavium.com moved definitions to drivers/acpi/numa.c]
Signed-off-by: David Daney <david.daney@cavium.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/x86/mm')
-rw-r--r-- | arch/x86/mm/numa.c | 2 | ||||
-rw-r--r-- | arch/x86/mm/srat.c | 13 |
2 files changed, 1 insertions, 14 deletions
diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c index 9c086c57105c..968ac028c34e 100644 --- a/arch/x86/mm/numa.c +++ b/arch/x86/mm/numa.c | |||
@@ -1,4 +1,5 @@ | |||
1 | /* Common code for 32 and 64-bit NUMA */ | 1 | /* Common code for 32 and 64-bit NUMA */ |
2 | #include <linux/acpi.h> | ||
2 | #include <linux/kernel.h> | 3 | #include <linux/kernel.h> |
3 | #include <linux/mm.h> | 4 | #include <linux/mm.h> |
4 | #include <linux/string.h> | 5 | #include <linux/string.h> |
@@ -15,7 +16,6 @@ | |||
15 | #include <asm/e820.h> | 16 | #include <asm/e820.h> |
16 | #include <asm/proto.h> | 17 | #include <asm/proto.h> |
17 | #include <asm/dma.h> | 18 | #include <asm/dma.h> |
18 | #include <asm/acpi.h> | ||
19 | #include <asm/amd_nb.h> | 19 | #include <asm/amd_nb.h> |
20 | 20 | ||
21 | #include "numa_internal.h" | 21 | #include "numa_internal.h" |
diff --git a/arch/x86/mm/srat.c b/arch/x86/mm/srat.c index 9e2a833b54fb..4217071fb4d2 100644 --- a/arch/x86/mm/srat.c +++ b/arch/x86/mm/srat.c | |||
@@ -24,19 +24,6 @@ | |||
24 | #include <asm/apic.h> | 24 | #include <asm/apic.h> |
25 | #include <asm/uv/uv.h> | 25 | #include <asm/uv/uv.h> |
26 | 26 | ||
27 | int acpi_numa __initdata; | ||
28 | |||
29 | static __init void bad_srat(void) | ||
30 | { | ||
31 | printk(KERN_ERR "SRAT: SRAT not used.\n"); | ||
32 | acpi_numa = -1; | ||
33 | } | ||
34 | |||
35 | static __init inline int srat_disabled(void) | ||
36 | { | ||
37 | return acpi_numa < 0; | ||
38 | } | ||
39 | |||
40 | /* Callback for Proximity Domain -> x2APIC mapping */ | 27 | /* Callback for Proximity Domain -> x2APIC mapping */ |
41 | void __init | 28 | void __init |
42 | acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa) | 29 | acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa) |