[PATCH] x86: remove all active before register them again after trimming - 64bit

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ingo Molnar <mingo@...>, Thomas Gleixner <tglx@...>, H. Peter Anvin <hpa@...>, Andrew Morton <akpm@...>
Cc: linux-kernel@vger.kernel.org <linux-kernel@...>
Date: Tuesday, June 3, 2008 - 4:43 am

so keep the early_node_map all right.

Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>

--- a/arch/x86/kernel/setup_64.c	2008-06-02 23:58:32.000000000 -0700
+++ b/arch/x86/kernel/setup_64.c	2008-06-02 23:59:52.000000000 -0700
@@ -382,6 +382,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();
 	}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] x86: remove all active before register them again af..., Yinghai Lu, (Tue Jun 3, 4:43 am)