linux/arch
Michal Hocko 940519f0c8 mm, memory_hotplug: provide a more generic restrictions for memory hotplug
arch_add_memory, __add_pages take a want_memblock which controls whether
the newly added memory should get the sysfs memblock user API (e.g.
ZONE_DEVICE users do not want/need this interface).  Some callers even
want to control where do we allocate the memmap from by configuring
altmap.

Add a more generic hotplug context for arch_add_memory and __add_pages.
struct mhp_restrictions contains flags which contains additional features
to be enabled by the memory hotplug (MHP_MEMBLOCK_API currently) and
altmap for alternative memmap allocator.

This patch shouldn't introduce any functional change.

[akpm@linux-foundation.org: build fix]
Link: http://lkml.kernel.org/r/20190408082633.2864-3-osalvador@suse.de
Signed-off-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: David Hildenbrand <david@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-05-14 09:47:49 -07:00
..
alpha init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
arc init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
arm initramfs: move the legacy keepinitrd parameter to core code 2019-05-14 09:47:47 -07:00
arm64 mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
c6x init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
csky DMA mapping updates for 5.2 2019-05-09 08:40:55 -07:00
h8300 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
hexagon hexagon: switch over to generic free_initmem() 2019-05-14 09:47:47 -07:00
ia64 mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
m68k initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
microblaze init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
mips initramfs: poison freed initrd memory 2019-05-14 09:47:47 -07:00
nds32 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
nios2 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
openrisc init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
parisc initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
powerpc mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
riscv riscv: switch over to generic free_initmem() 2019-05-14 09:47:47 -07:00
s390 mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
sh mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
sparc mm: use mm_zero_struct_page from SPARC on all 64b architectures 2019-05-14 09:47:49 -07:00
um initramfs: provide a generic free_initrd_mem implementation 2019-05-14 09:47:47 -07:00
unicore32 init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
x86 mm, memory_hotplug: provide a more generic restrictions for memory hotplug 2019-05-14 09:47:49 -07:00
xtensa init: provide a generic free_initmem implementation 2019-05-14 09:47:47 -07:00
.gitignore
Kconfig initramfs: move the legacy keepinitrd parameter to core code 2019-05-14 09:47:47 -07:00