summaryrefslogtreecommitdiffstats
path: root/arch/arm/mm/mmu.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-05-18 12:58:34 +0100
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2021-06-07 12:56:19 +0100
commit4c1b7a7616086a95cb6983f7b68b8d85b2f9bcc6 (patch)
tree4053f5d9898d1aa81033ec00778ac3715905b1de /arch/arm/mm/mmu.c
parentf572f5cb3926fb436cf4f55c84685f2ff7425e57 (diff)
downloadlinux-4c1b7a7616086a95cb6983f7b68b8d85b2f9bcc6.tar.gz
linux-4c1b7a7616086a95cb6983f7b68b8d85b2f9bcc6.tar.bz2
linux-4c1b7a7616086a95cb6983f7b68b8d85b2f9bcc6.zip
ARM: change vmalloc_start to vmalloc_size
Rather than storing the start of vmalloc space, store the size, and move the calculation into adjust_lowmem_limit(). We now have one single place where this calculation takes place. Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Yanfei Xu <yanfei.xu@windriver.com> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mm/mmu.c')
-rw-r--r--arch/arm/mm/mmu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
index a1d1a431340f..c4616b068308 100644
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@ -1121,7 +1121,7 @@ void __init debug_ll_io_init(void)
}
#endif
-static unsigned long __initdata vmalloc_start = VMALLOC_END - (240 << 20);
+static unsigned long __initdata vmalloc_size = 240 << 20;
/*
* vmalloc=size forces the vmalloc area to be exactly 'size'
@@ -1146,7 +1146,7 @@ static int __init early_vmalloc(char *arg)
vmalloc_reserve >> 20);
}
- vmalloc_start = VMALLOC_END - vmalloc_reserve;
+ vmalloc_size = vmalloc_reserve;
return 0;
}
early_param("vmalloc", early_vmalloc);
@@ -1166,7 +1166,7 @@ void __init adjust_lowmem_bounds(void)
* and may itself be outside the valid range for which phys_addr_t
* and therefore __pa() is defined.
*/
- vmalloc_limit = (u64)vmalloc_start - VMALLOC_OFFSET -
+ vmalloc_limit = (u64)VMALLOC_END - vmalloc_size - VMALLOC_OFFSET -
PAGE_OFFSET + PHYS_OFFSET;
/*