[PATCH] Clean up acpi_numa variable
authorAndi Kleen <ak@suse.de>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:33 +0000 (10:52 +0200)
Move it into srat.c No need to clutter up setup.c for it

And remove use in setup.c completely - it only guarded a printk
which can be done unconditionally.

Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/setup.c
arch/x86_64/mm/srat.c

index 0f86976811d601a862db5964ae65eb54e85faecb..b85528597aa8c291642ee51192b762d3a1e3d3e2 100644 (file)
@@ -74,8 +74,6 @@ EXPORT_SYMBOL(boot_cpu_data);
 
 unsigned long mmu_cr4_features;
 
-int acpi_numa __initdata;
-
 /* Boot loader ID as an integer, for the benefit of proc_dointvec */
 int bootloader_type;
 
@@ -812,8 +810,7 @@ static void srat_detect_node(void)
                node = first_node(node_online_map);
        numa_set_node(cpu, node);
 
-       if (acpi_numa > 0)
-               printk(KERN_INFO "CPU %d/%x -> Node %d\n", cpu, apicid, node);
+       printk(KERN_INFO "CPU %d/%x -> Node %d\n", cpu, apicid, node);
 #endif
 }
 
index 502fce65e96ae246986e4b767b0e10897733b71c..ca10701e7a905a36f88b604a5b2c3ed280112d6b 100644 (file)
@@ -21,6 +21,8 @@
 #include <asm/numa.h>
 #include <asm/e820.h>
 
+int acpi_numa __initdata;
+
 #if (defined(CONFIG_ACPI_HOTPLUG_MEMORY) || \
        defined(CONFIG_ACPI_HOTPLUG_MEMORY_MODULE)) \
                && !defined(CONFIG_MEMORY_HOTPLUG)