mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
vmemmap: generify initialisation via helpers
Convert the common vmemmap population into initialisation helpers for use by architecture vmemmap populators. All architecture implementing the SPARSEMEM_VMEMMAP variant supply an architecture specific vmemmap_populate() initialiser, which may make use of the helpers. This allows us to clean up and remove the initialisation Kconfig entries. With this patch there is a single SPARSEMEM_VMEMMAP_ENABLE Kconfig option to indicate use of that variant. Signed-off-by: Andy Whitcroft <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8f6aac419b
commit
29c71111d0
3 changed files with 83 additions and 98 deletions
13
mm/Kconfig
13
mm/Kconfig
|
|
@ -112,6 +112,19 @@ config SPARSEMEM_EXTREME
|
|||
def_bool y
|
||||
depends on SPARSEMEM && !SPARSEMEM_STATIC
|
||||
|
||||
#
|
||||
# SPARSEMEM_VMEMMAP uses a virtually mapped mem_map to optimise pfn_to_page
|
||||
# and page_to_pfn. The most efficient option where kernel virtual space is
|
||||
# not under pressure.
|
||||
#
|
||||
config SPARSEMEM_VMEMMAP_ENABLE
|
||||
def_bool n
|
||||
|
||||
config SPARSEMEM_VMEMMAP
|
||||
bool
|
||||
depends on SPARSEMEM
|
||||
default y if (SPARSEMEM_VMEMMAP_ENABLE)
|
||||
|
||||
# eventually, we can have this option just 'select SPARSEMEM'
|
||||
config MEMORY_HOTPLUG
|
||||
bool "Allow for memory hot-add"
|
||||
|
|
|
|||
Loading…
Reference in a new issue