diff options
author | Will Deacon <will@kernel.org> | 2021-09-29 14:54:04 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2021-09-29 14:54:04 +0200 |
commit | e63cf610ead18d5f8df0739a36cba57ccba43f6b (patch) | |
tree | 99b21842b901edb08a0ad5c49f97c4046cae491a /arch/arm64/mm/init.c | |
parent | Linux 5.15-rc3 (diff) | |
download | linux-e63cf610ead18d5f8df0739a36cba57ccba43f6b.tar.xz linux-e63cf610ead18d5f8df0739a36cba57ccba43f6b.zip |
arm64: mm: Drop pointless call to set_max_mapnr()
set_max_mapnr() is an empty stub function if CONFIG_NUMA=y, otherwise it
assigns to the 'max_mapnr' variable which is used to provide a generic
pfn_valid() implementation if CONFIG_MMU=n.
Since we don't support nommu on arm64, drop the pointless call to
set_max_mapnr() from mem_init().
Link: https://lore.kernel.org/r/130a50d7-92fd-31fa-261e-f73dadcb4fcf@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/mm/init.c')
-rw-r--r-- | arch/arm64/mm/init.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 37a81754d9b6..142125749783 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -416,8 +416,6 @@ void __init mem_init(void) else if (!xen_swiotlb_detect()) swiotlb_force = SWIOTLB_NO_FORCE; - set_max_mapnr(max_pfn - PHYS_PFN_OFFSET); - /* this will put all unused low memory onto the freelists */ memblock_free_all(); |