Commit 86dd995d authored by Vitaly Kuznetsov's avatar Vitaly Kuznetsov Committed by Linus Torvalds

memory_hotplug: introduce memhp_default_state= command line parameter

CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE specifies the default value for the
memory hotplug onlining policy.  Add a command line parameter to make it
possible to override the default.  It may come handy for debug and
testing purposes.
Signed-off-by: default avatarVitaly Kuznetsov <>
Cc: Jonathan Corbet <>
Cc: Dan Williams <>
Cc: "Kirill A. Shutemov" <>
Cc: Mel Gorman <>
Cc: David Vrabel <>
Cc: David Rientjes <>
Cc: Igor Mammedov <>
Cc: Lennart Poettering <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 8604d9e5
......@@ -2161,6 +2161,14 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
[KNL,SH] Allow user to override the default size for
per-device physically contiguous DMA buffers.
[KNL] Set the initial state for the memory hotplug
onlining policy. If not specified, the default value is
set according to the
See Documentation/memory-hotplug.txt.
memmap=exactmap [KNL,X86] Enable setting of an exact
E820 memory map, as specified by the user.
Such memmap=exactmap lines can be constructed based on
......@@ -85,6 +85,17 @@ bool memhp_auto_online = true;
static int __init setup_memhp_default_state(char *str)
if (!strcmp(str, "online"))
memhp_auto_online = true;
else if (!strcmp(str, "offline"))
memhp_auto_online = false;
return 1;
__setup("memhp_default_state=", setup_memhp_default_state);
void get_online_mems(void)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment