arm: mm: consider only lowmem regions while remap

Consider only those memory blocks with lowmem while
remapping into 4KB regions using CONFIG_FORCE_PAGES
feature.

Change-Id: Ie209fce6c310f911d8cf02d977e226660684a6ab
Signed-off-by: Shiraz Hashim <shashim@codeaurora.org>
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Signed-off-by: Qingqing Zhou <qqzhou@codeaurora.org>
This commit is contained in:
Shiraz Hashim 2015-06-30 09:14:46 +05:30 • committed by Gerrit - the friendly Code Review server
commit dd1e256440

View file

@ -1669,6 +1669,8 @@ static void __init remap_pages(void)
bool fixup = false;
unsigned long saved_start = addr;
if (phys_start > arm_lowmem_limit)
break;
if (phys_end > arm_lowmem_limit)
end = (unsigned long)__va(arm_lowmem_limit);
if (phys_start >= phys_end)