arm-arm64-move-free_unused_memmap-to-generic-mm.patch removed from -mm tree
The patch titled
Subject: arm, arm64: move free_unused_memmap() to generic mm
has been removed from the -mm tree. Its filename was
arm-arm64-move-free_unused_memmap-to-generic-mm.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Mike Rapoport <[email protected]>
Subject: 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.
---
arch/Kconfig | 3 + arch/arm/Kconfig | 4 -- arch/arm/mm/init.c | 78 --------------------------------------- arch/arm64/Kconfig | 4 -- arch/arm64/mm/init.c | 68 ---------------------------------- mm/memblock.c | 80 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 85 insertions(+), 152 deletions(-)
arch/arm64/Kconfig renamed from arch/arm64/Kconfig~arm-arm64-move-free_unused_memmap-to-generic-mm +1 -3
@@ -140,6 +140,7 @@ config ARM64 select HAVE_ARCH_KGDB select HAVE_ARCH_MMAP_RND_BITS select HAVE_ARCH_MMAP_RND_COMPAT_BITS if COMPAT + select HAVE_ARCH_PFN_VALID select HAVE_ARCH_PREL32_RELOCATIONS select HAVE_ARCH_SECCOMP_FILTER select HAVE_ARCH_STACKLEAK
@@ -1043,9 +1044,6 @@ config ARCH_SELECT_MEMORY_MODEL config ARCH_FLATMEM_ENABLE def_bool !NUMA -config HAVE_ARCH_PFN_VALID - def_bool y - config HW_PERF_EVENTS def_bool y depends on ARM_PMU
arch/arm64/mm/init.c renamed from arch/arm64/mm/init.c~arm-arm64-move-free_unused_memmap-to-generic-mm +0 -68
80 lines not on this page · raw message
arch/arm/Kconfig renamed from arch/arm/Kconfig~arm-arm64-move-free_unused_memmap-to-generic-mm +1 -3
@@ -69,6 +69,7 @@ config ARM select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL && !CPU_ENDIAN_BE32 && MMU select HAVE_ARCH_KGDB if !CPU_ENDIAN_BE32 && MMU select HAVE_ARCH_MMAP_RND_BITS if MMU + select HAVE_ARCH_PFN_VALID select HAVE_ARCH_SECCOMP select HAVE_ARCH_SECCOMP_FILTER if AEABI && !OABI_COMPAT select HAVE_ARCH_THREAD_STRUCT_WHITELIST
@@ -1489,9 +1490,6 @@ config ARCH_SPARSEMEM_ENABLE bool select SPARSEMEM_STATIC if SPARSEMEM -config HAVE_ARCH_PFN_VALID - def_bool y - config HIGHMEM bool "High Memory Support" depends on MMU
arch/arm/mm/init.c renamed from arch/arm/mm/init.c~arm-arm64-move-free_unused_memmap-to-generic-mm +0 -78
90 lines not on this page · raw message
arch/Kconfig renamed from arch/Kconfig~arm-arm64-move-free_unused_memmap-to-generic-mm +3 -0
@@ -1044,6 +1044,9 @@ config ARCH_WANT_LD_ORPHAN_WARN by the linker, since the locations of such sections can change between linker versions. +config HAVE_ARCH_PFN_VALID + bool + source "kernel/gcov/Kconfig" source "scripts/gcc-plugins/Kconfig"
mm/memblock.c renamed from mm/memblock.c~arm-arm64-move-free_unused_memmap-to-generic-mm +80 -0
92 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
mm-memblock-enforce-overlap-of-memorymemblock-and-memoryreserved.patch mm-fix-initialization-of-struct-page-for-holes-in-memory-layout.patch mm-add-definition-of-pmd_page_order.patch mmap-make-mlock_future_check-global.patch set_memory-allow-set_direct_map__noflush-for-multiple-pages.patch set_memory-allow-querying-whether-set_direct_map_-is-actually-enabled.patch mm-introduce-memfd_secret-system-call-to-create-secret-memory-areas.patch secretmem-use-pmd-size-pages-to-amortize-direct-map-fragmentation.patch secretmem-add-memcg-accounting.patch pm-hibernate-disable-when-there-are-active-secretmem-users.patch arch-mm-wire-up-memfd_secret-system-call-were-relevant.patch secretmem-test-add-basic-selftest-for-memfd_secret2.patch