aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2011-02-16 06:13:06 -0500
committerTejun Heo <tj@kernel.org>2011-02-16 06:13:06 -0500
commitd8fc3afc49bb226c20e37f48a4ddd493cd092837 (patch)
tree96bf7b0f4e47e798697ea72a180da528be0d8902 /arch/x86/kernel/setup.c
parenta9aec56afac238e4ed3980bd10b22121b83866dd (diff)
x86, NUMA: Move *_numa_init() invocations into initmem_init()
There's no reason for these to live in setup_arch(). Move them inside initmem_init(). - v2: x86-32 initmem_init() weren't updated breaking 32bit builds. Fixed. Found by Ankita. Signed-off-by: Tejun Heo <tj@kernel.org> Cc: Ankita Garg <ankita@in.ibm.com> Cc: Yinghai Lu <yinghai@kernel.org> Cc: Brian Gerst <brgerst@gmail.com> Cc: Cyrill Gorcunov <gorcunov@gmail.com> Cc: Shaohui Zheng <shaohui.zheng@intel.com> Cc: David Rientjes <rientjes@google.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index c9a139c3056b..46e684f85b36 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -719,8 +719,6 @@ early_param("reservelow", parse_reservelow);
719 719
720void __init setup_arch(char **cmdline_p) 720void __init setup_arch(char **cmdline_p)
721{ 721{
722 int acpi = 0;
723 int amd = 0;
724 unsigned long flags; 722 unsigned long flags;
725 723
726#ifdef CONFIG_X86_32 724#ifdef CONFIG_X86_32
@@ -991,19 +989,7 @@ void __init setup_arch(char **cmdline_p)
991 989
992 early_acpi_boot_init(); 990 early_acpi_boot_init();
993 991
994#ifdef CONFIG_ACPI_NUMA 992 initmem_init();
995 /*
996 * Parse SRAT to discover nodes.
997 */
998 acpi = !x86_acpi_numa_init();
999#endif
1000
1001#ifdef CONFIG_AMD_NUMA
1002 if (!acpi)
1003 amd = !amd_numa_init();
1004#endif
1005
1006 initmem_init(acpi, amd);
1007 memblock_find_dma_reserve(); 993 memblock_find_dma_reserve();
1008 dma32_reserve_bootmem(); 994 dma32_reserve_bootmem();
1009 995