mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
79c6016958
commit
1842f90cc9
4 changed files with 22 additions and 45 deletions
|
@ -967,6 +967,7 @@ void __init setup_arch(char **cmdline_p)
|
|||
#endif
|
||||
|
||||
initmem_init(0, max_pfn, acpi, k8);
|
||||
early_res_to_bootmem(0, max_low_pfn<<PAGE_SHIFT);
|
||||
|
||||
#ifdef CONFIG_X86_64
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue