]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mm: Use big page size for small memory range
authorYinghai Lu <yinghai@kernel.org>
Sat, 17 Nov 2012 03:38:55 +0000 (19:38 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Sat, 17 Nov 2012 19:59:16 +0000 (11:59 -0800)
commit500d14cb633a3ed765193a911bc86b36df7c2f71
tree297a456bff5e391a6e0de863a528e6d9d7579365
parent49826f3c482305609463df4265eb448059804abf
x86, mm: Use big page size for small memory range

We could map small range in the middle of big range at first, so should use
big page size at first to avoid using small page size to break down page table.

Only can set big page bit when that range has ram area around it.

-v2: fix 32bit boundary checking. We can not count ram above max_low_pfn
for 32 bit.

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