Skip to content

Commit e63cf61

Browse files
committed
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/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 5816b3e commit e63cf61

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm64/mm/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,6 @@ void __init mem_init(void)
416416
else if (!xen_swiotlb_detect())
417417
swiotlb_force = SWIOTLB_NO_FORCE;
418418

419-
set_max_mapnr(max_pfn - PHYS_PFN_OFFSET);
420-
421419
/* this will put all unused low memory onto the freelists */
422420
memblock_free_all();
423421

0 commit comments

Comments
 (0)