]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: remove all active memory ranges before registering them again after trimming...
authorYinghai Lu <yhlu.kernel@gmail.com>
Tue, 3 Jun 2008 08:43:24 +0000 (01:43 -0700)
committerIngo 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

index adf3b04dc5822ca8a646bb638982107bb66ad484..26d60cc0e3708004ad1f13d71da8f595680e0964 100644 (file)
@@ -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();
        }