x86, mm: Separate out calculate_table_space_size()
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:45 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:07 +0000 (11:59 -0800)
commitab9519376e86fbbf3c64e5a2b8b005958ea3e9cc
treefd740f3abd4a8c2114a68039c0601e3a7784a4bd
parentc14fa0b63b5b4234667c03fdc3314c0881caa514
x86, mm: Separate out calculate_table_space_size()

It should take physical address range that will need to be mapped.
find_early_table_space should take range that pgt buff should be in.

Separating page table size calculating and finding early page table to
reduce confusing.

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