projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2377494
)
x86: remove all active memory ranges before registering them again after trimming...
author
Yinghai Lu
<yhlu.kernel@gmail.com>
Tue, 3 Jun 2008 08:43:24 +0000
(
01:43
-0700)
committer
Ingo Molnar
<mingo@elte.hu>
Tue, 10 Jun 2008 09:30:47 +0000
(11:30 +0200)
this way we keep the early_node_map all right.
Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/setup_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/setup_64.c
b/arch/x86/kernel/setup_64.c
index adf3b04dc5822ca8a646bb638982107bb66ad484..26d60cc0e3708004ad1f13d71da8f595680e0964 100644
(file)
--- a/
arch/x86/kernel/setup_64.c
+++ b/
arch/x86/kernel/setup_64.c
@@
-368,6
+368,7
@@
void __init setup_arch(char **cmdline_p)
/* update e820 for memory not covered by WB MTRRs */
mtrr_bp_init();
if (mtrr_trim_uncached_memory(end_pfn)) {
+ remove_all_active_ranges();
e820_register_active_regions(0, 0, -1UL);
end_pfn = e820_end_of_ram();
}