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>
This commit is contained in:
Shiraz Hashim 2015-06-30 09:14:46 +05:30 committed by Kyle Yan
parent 14c44670ea
commit 24edbd9fd4

View file

@ -1636,6 +1636,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)