aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/setup.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2010-02-10 04:20:15 -0500
committerH. Peter Anvin <hpa@zytor.com>2010-02-10 20:47:18 -0500
commit1842f90cc98625d4d9bf8f8b927f17705ceb4e9c (patch)
tree12a120d130aef8d12010d1b3732af1387bac751d /arch/x86/kernel/setup.c
parent79c601695870ca2a9c0ba9949a97d2be78ec07b2 (diff)
x86: Call early_res_to_bootmem one time
Simplify setup_node_mem: don't use bootmem from other node, instead just find_e820_area in early_node_mem. This keeps the boundary between early_res and boot mem more clear, and lets us only call early_res_to_bootmem() one time instead of for all nodes. Signed-off-by: Yinghai Lu <yinghai@kernel.org> LKML-Reference: <1265793639-15071-12-git-send-email-yinghai@kernel.org> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r--arch/x86/kernel/setup.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
index 3499b4fabc94..48cadbb1d28b 100644
--- a/arch/x86/kernel/setup.c
+++ b/arch/x86/kernel/setup.c
@@ -967,6 +967,7 @@ void __init setup_arch(char **cmdline_p)
967#endif 967#endif
968 968
969 initmem_init(0, max_pfn, acpi, k8); 969 initmem_init(0, max_pfn, acpi, k8);
970 early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT);
970 971
971#ifdef CONFIG_X86_64 972#ifdef CONFIG_X86_64
972 /* 973 /*