Skip to contentSkip to conversation

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

PATCH Applied Yinghai Lu 2 participants 2 messages Jun 3, 2008 – Jun 10, 2008 x86

lore
Share & tools
lore

Yinghai Lu

author
#0 lore raw

PATCH 1/1 x86: remove all active before register them again after trimming - 64bit

so keep the early_node_map all right.

arch/x86/kernel/setup_64.c +1 -0
@@ -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();
 	}
Applied
#1 lore raw
Quoted 1 line · Yinghai Lu

so keep the early_node_map all right.

applied to tip/x86/mpparse, thanks.

Ingo