summaryrefslogtreecommitdiff
path: root/arch/arm/mm
diff options
context:
space:
mode:
authorSusheel Khiani <skhiani@codeaurora.org>2013-08-22 13:46:07 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:03:59 -0700
commit793d80f988e2ce1d430f72fae066df9446316d60 (patch)
treec80a03d0244d524a0e1af1a17ce82147dad56726 /arch/arm/mm
parentc064333eace6def3291fa4d07be9eed6654ccea3 (diff)
mm: Update is_vmalloc_addr to account for vmalloc savings
is_vmalloc_addr currently assumes that all vmalloc addresses exist between VMALLOC_START and VMALLOC_END. This may not be the case when interleaving vmalloc and lowmem. Update the is_vmalloc_addr to properly check for this. Correspondingly we need to ensure that VMALLOC_TOTAL accounts for all the vmalloc regions when CONFIG_ENABLE_VMALLOC_SAVING is enabled. Change-Id: I5def3d6ae1a4de59ea36f095b8c73649a37b1f36 Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r--arch/arm/mm/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index 76504f896696..9ab506ebff59 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -1474,6 +1474,7 @@ static void __init map_lowmem(void)
vm->flags |= VM_ARM_MTYPE(type);
vm->caller = map_lowmem;
add_static_vm_early(svm++);
+ mark_vmalloc_reserved_area(vm->addr, vm->size);
}
}