linux/arch/sh
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
..
boards clk: Allow the common clk framework to be selectable 2020-05-05 12:34:11 -07:00
boot sh: remove sh5 support 2020-06-01 14:48:52 -04:00
cchips treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
configs sh: configs: Cleanup old Kconfig IO scheduler options 2020-06-01 14:48:48 -04:00
drivers sh: remove sh5 support 2020-06-01 14:48:52 -04:00
include asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
kernel mm: remove unneeded includes of <asm/pgalloc.h> 2020-08-07 11:33:26 -07:00
lib sh: add missing EXPORT_SYMBOL() for __delay 2020-06-01 14:48:51 -04:00
math-emu Merge branch 'siginfo-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace 2019-07-08 21:48:15 -07:00
mm mm/sparse: cleanup the code surrounding memory_present() 2020-08-07 11:33:27 -07:00
oprofile treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tools kbuild: remove redundant target cleaning on failure 2019-01-06 09:46:51 +09:00
Kconfig arch: remove HAVE_COPY_THREAD_TLS 2020-07-04 23:41:37 +02:00
Kconfig.cpu docs: sh: convert register-banks.txt to ReST 2020-06-19 14:10:13 -06:00
Kconfig.debug sh: remove sh5 support 2020-06-01 14:48:52 -04:00
Makefile sh: remove sh5 support 2020-06-01 14:48:52 -04:00