[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200806030143.24805.yhlu.kernel@gmail.com>
Date: Tue, 3 Jun 2008 01:43:24 -0700
From: Yinghai Lu <yhlu.kernel@...il.com>
To: Ingo Molnar <mingo@...e.hu>, Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] x86: remove all active before register them again after trimming - 64bit
so keep the early_node_map all right.
Signed-off-by: Yinghai Lu <yhlu.kernel@...il.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();
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists