From beb7d577e37d47cf64833a2c2e6f48d2045d9e3c Mon Sep 17 00:00:00 2001 From: Scott Branden Date: Fri, 28 Apr 2017 14:09:53 +0530 Subject: [PATCH] arm64: memory-hotplug: Add MEMORY_HOTPLUG, MEMORY_HOTREMOVE, MEMORY_PROBE Add memory-hotplug support for ARM64 platform. This requires addition of ARCH_ENABLE_MEMORY_HOTPLUG and ARCH_ENABLE_MEMORY_HOTREMOVE config options. MEMORY_PROBE config option is added to support /sys/devices/system/memory/probe functionality. In addition architecture specific arch_add_memory and arch_remove memory management functions are added. Change-Id: I1fc4e8c93cfe1b9722b2fc8d811390e6cdfa7995 Signed-off-by: Scott Branden Patch-mainline: linux-kernel @ 11 Apr 2017, 18:24 Signed-off-by: Srivatsa Vaddagiri [sudaraja@codeaurora.org: remove explicit zone calculation] Signed-off-by: Sudarshan Rajagopalan [isaacm@codeaurora.org: remove duplicate hotplug/hot remove code in init.c] Signed-off-by: Isaac J. Manjarres --- arch/arm64/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 6fdfbae8c232..e2050f36e8bf 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -275,6 +275,9 @@ config ZONE_DMA32 config ARCH_ENABLE_MEMORY_HOTPLUG def_bool y +config ARCH_ENABLE_MEMORY_HOTREMOVE + def_bool y + config SMP def_bool y @@ -971,6 +974,10 @@ endif config ARCH_ENABLE_SPLIT_PMD_PTLOCK def_bool y if PGTABLE_LEVELS > 2 +config ARCH_MEMORY_PROBE + def_bool y + depends on MEMORY_HOTPLUG + config SECCOMP bool "Enable seccomp to safely compute untrusted bytecode" ---help---