aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/include/asm/acpi.h1
-rw-r--r--arch/x86/kernel/setup.c2
-rw-r--r--arch/x86/mm/srat_64.c10
3 files changed, 12 insertions, 1 deletions
diff --git a/arch/x86/include/asm/acpi.h b/arch/x86/include/asm/acpi.h
index 4e5dff9e0b3..06fb7865eff 100644
--- a/arch/x86/include/asm/acpi.h
+++ b/arch/x86/include/asm/acpi.h
@@ -187,6 +187,7 @@ struct bootnode;
187extern int acpi_numa; 187extern int acpi_numa;
188extern void acpi_get_nodes(struct bootnode *physnodes, unsigned long start, 188extern void acpi_get_nodes(struct bootnode *physnodes, unsigned long start,
189 unsigned long end); 189 unsigned long end);
190extern int x86_acpi_numa_init(void);
190extern int acpi_scan_nodes(void); 191extern int acpi_scan_nodes(void);
191#define NR_NODE_MEMBLKS (MAX_NUMNODES*2) 192#define NR_NODE_MEMBLKS (MAX_NUMNODES*2)
192 193
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 96810a3c600..c9a139c3056 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -995,7 +995,7 @@ void __init setup_arch(char **cmdline_p)
995 /* 995 /*
996 * Parse SRAT to discover nodes. 996 * Parse SRAT to discover nodes.
997 */ 997 */
998 acpi = !acpi_numa_init(); 998 acpi = !x86_acpi_numa_init();
999#endif 999#endif
1000 1000
1001#ifdef CONFIG_AMD_NUMA 1001#ifdef CONFIG_AMD_NUMA
diff --git a/arch/x86/mm/srat_64.c b/arch/x86/mm/srat_64.c
index 4f9dbf066ca..56b92635d87 100644
--- a/arch/x86/mm/srat_64.c
+++ b/arch/x86/mm/srat_64.c
@@ -358,6 +358,16 @@ void __init acpi_get_nodes(struct bootnode *physnodes, unsigned long start,
358} 358}
359#endif /* CONFIG_NUMA_EMU */ 359#endif /* CONFIG_NUMA_EMU */
360 360
361int __init x86_acpi_numa_init(void)
362{
363 int ret;
364
365 ret = acpi_numa_init();
366 if (ret < 0)
367 return ret;
368 return srat_disabled() ? -EINVAL : 0;
369}
370
361/* Use the information discovered above to actually set up the nodes. */ 371/* Use the information discovered above to actually set up the nodes. */
362int __init acpi_scan_nodes(void) 372int __init acpi_scan_nodes(void)
363{ 373{