x86, mm: Find early page table buffer together
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:44 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:06 +0000 (11:59 -0800)
commitc14fa0b63b5b4234667c03fdc3314c0881caa514
tree15efa536cda6bd4b860d4827ba5f2f155c4e678d
parent84f1ae30bb68d8da98bca7ff2c2b825b2ac8c9a5
x86, mm: Find early page table buffer together

We should not do that in every calling of init_memory_mapping.

At the same time need to move down early_memtest, and could remove after_bootmem
checking.

-v2: fix one early_memtest with 32bit by passing max_pfn_mapped instead.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Link: http://lkml.kernel.org/r/1353123563-3103-8-git-send-email-yinghai@kernel.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/mm/init.c