arm64: Kconfig: Remove ARCH_HAS_HOLES_MEMORYMODEL
authorJames Morse <james.morse@arm.com>
Fri, 31 Aug 2018 15:19:43 +0000 (16:19 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 21 Sep 2018 11:02:45 +0000 (12:02 +0100)
commit8a695a5873339c2e7c746ee51e3774fedd07d0a9
treed1ed0a79656a81836bebcd49ba116c4f62e9a215
parent21f84796177443695680180a8493a9e20d254d5e
arm64: Kconfig: Remove ARCH_HAS_HOLES_MEMORYMODEL

include/linux/mmzone.h describes ARCH_HAS_HOLES_MEMORYMODEL as
relevant when parts the memmap have been free()d. This would
happen on systems where memory is smaller than a sparsemem-section,
and the extra struct pages are expensive. pfn_valid() on these
systems returns true for the whole sparsemem-section, so an extra
memmap_valid_within() check is needed.

On arm64 we have nomap memory, so always provide pfn_valid() to test
for nomap pages. This means ARCH_HAS_HOLES_MEMORYMODEL's extra checks
are already rolled up into pfn_valid().

Remove it.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: James Morse <james.morse@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Kconfig
arch/arm64/include/asm/page.h
arch/arm64/mm/init.c