ACPI / NUMA: move bad_srat() and srat_disabled() to drivers/acpi/numa.c
[deliverable/linux.git] / drivers / acpi / numa.c
index 7e0649d11da2a567ba8c961c3756aeeb49974899..af0c8d5c845b9e6d805f33890f7ab12416a4aa76 100644 (file)
@@ -40,6 +40,7 @@ static int node_to_pxm_map[MAX_NUMNODES]
                        = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL };
 
 unsigned char acpi_srat_revision __initdata;
+int acpi_numa __initdata;
 
 int pxm_to_node(int pxm)
 {
@@ -197,6 +198,17 @@ static int __init slit_valid(struct acpi_table_slit *slit)
        return 1;
 }
 
+void __init bad_srat(void)
+{
+       pr_err("SRAT: SRAT not used.\n");
+       acpi_numa = -1;
+}
+
+int __init srat_disabled(void)
+{
+       return acpi_numa < 0;
+}
+
 #if defined(CONFIG_X86) || defined(CONFIG_ARM64)
 /*
  * Callback for SLIT parsing.  pxm_to_node() returns NUMA_NO_NODE for
This page took 0.024739 seconds and 5 git commands to generate.