path: root/arch/Kconfig
diff options
authorMike Rapoport <>2020-12-14 19:09:59 -0800
committerLinus Torvalds <>2020-12-15 12:13:42 -0800
commit4f5b0c1789963477cc9a4d45b4b62d694665cceb (patch)
tree75218978fe4f143db92f18d4e9a9a462e2c0c772 /arch/Kconfig
parent5e545df3292fbd3d5963c68980f1527ead2a2b3f (diff)
arm, arm64: move free_unused_memmap() to generic mm
ARM and ARM64 free unused parts of the memory map just before the initialization of the page allocator. To allow holes in the memory map both architectures overload pfn_valid() and define HAVE_ARCH_PFN_VALID. Allowing holes in the memory map for FLATMEM may be useful for small machines, such as ARC and m68k and will enable those architectures to cease using DISCONTIGMEM and still support more than one memory bank. Move the functions that free unused memory map to generic mm and enable them in case HAVE_ARCH_PFN_VALID=y. Link: Signed-off-by: Mike Rapoport <> Acked-by: Catalin Marinas <> [arm64] Cc: Alexey Dobriyan <> Cc: Geert Uytterhoeven <> Cc: Greg Ungerer <> Cc: John Paul Adrian Glaubitz <> Cc: Jonathan Corbet <> Cc: Matt Turner <> Cc: Meelis Roos <> Cc: Michael Schmitz <> Cc: Russell King <> Cc: Tony Luck <> Cc: Vineet Gupta <> Cc: Will Deacon <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'arch/Kconfig')
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 54a240b61f56..8d5efff59cd8 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -1044,6 +1044,9 @@ config ARCH_WANT_LD_ORPHAN_WARN
by the linker, since the locations of such sections can change between linker
+ bool
source "kernel/gcov/Kconfig"
source "scripts/gcc-plugins/Kconfig"