From: Andi Kleen <[email protected]>
[PATCH 3/4] x86_64: Use early reservation for early node data
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Yinghai Lu <[email protected]>
===================================================================
--- linux.orig/arch/x86/mm/numa_64.c
+++ linux/arch/x86/mm/numa_64.c
@@ -175,6 +175,7 @@
* with bss section
*/
mem = round_up(mem, PAGE_SIZE);
+ reserve_early(mem, mem + size);
return __va(mem);
}
ptr = __alloc_bootmem_nopanic(size,