aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-06-03 04:43:24 -0400
committerIngo Molnar <mingo@elte.hu>2008-06-10 05:30:47 -0400
commitdb3660c1905293b91653e07f7857576df71ebf28 (patch)
treeb4260c18c92c4f7be570995ff62edda39b8f0a88
parent237749428552e2f81ec6c801482dfd8a777e470b (diff)
x86: remove all active memory ranges before registering them again after trimming - 64bit
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>
-rw-r--r--arch/x86/kernel/setup_64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup_64.c b/arch/x86/kernel/setup_64.c
index adf3b04dc582..26d60cc0e370 100644
--- 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)
368 /* update e820 for memory not covered by WB MTRRs */ 368 /* update e820 for memory not covered by WB MTRRs */
369 mtrr_bp_init(); 369 mtrr_bp_init();
370 if (mtrr_trim_uncached_memory(end_pfn)) { 370 if (mtrr_trim_uncached_memory(end_pfn)) {
371 remove_all_active_ranges();
371 e820_register_active_regions(0, 0, -1UL); 372 e820_register_active_regions(0, 0, -1UL);
372 end_pfn = e820_end_of_ram(); 373 end_pfn = e820_end_of_ram();
373 } 374 }