linux/arch
Mike Rapoport c89ab04feb mm/sparse: cleanup the code surrounding memory_present()
After removal of CONFIG_HAVE_MEMBLOCK_NODE_MAP we have two equivalent
functions that call memory_present() for each region in memblock.memory:
sparse_memory_present_with_active_regions() and membocks_present().

Moreover, all architectures have a call to either of these functions
preceding the call to sparse_init() and in the most cases they are called
one after the other.

Mark the regions from memblock.memory as present during sparce_init() by
making sparse_init() call memblocks_present(), make memblocks_present()
and memory_present() functions static and remove redundant
sparse_memory_present_with_active_regions() function.

Also remove no longer required HAVE_MEMORY_PRESENT configuration option.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/20200712083130.22919-1-rppt@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-07 11:33:27 -07:00
..
alpha asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
arc mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
arm mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
arm64 mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
c6x Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2020-08-05 20:13:21 -07:00
csky asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
h8300 fork-v5.9 2020-08-04 14:47:45 -07:00
hexagon asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
ia64 mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
m68k asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
microblaze mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
mips mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
nds32 asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
nios2 asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
openrisc opeinrisc: switch to generic version of pte allocation 2020-08-07 11:33:26 -07:00
parisc mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
powerpc mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
riscv mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
s390 mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
sh mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
sparc mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
um asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
x86 mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
xtensa asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
.gitignore
Kconfig It's been a busy cycle for documentation - hopefully the busiest for a 2020-08-04 22:47:54 -07:00