aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/kernel-parameters.txt3
-rw-r--r--drivers/acpi/acpi_memhotplug.c12
2 files changed, 15 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 50680a59a2ff..f87856eafea8 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -343,6 +343,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
343 no: ACPI OperationRegions are not marked as reserved, 343 no: ACPI OperationRegions are not marked as reserved,
344 no further checks are performed. 344 no further checks are performed.
345 345
346 acpi_no_memhotplug [ACPI] Disable memory hotplug. Useful for kdump
347 kernels.
348
346 add_efi_memmap [EFI; X86] Include EFI memory map in 349 add_efi_memmap [EFI; X86] Include EFI memory map in
347 kernel's map of available physical RAM. 350 kernel's map of available physical RAM.
348 351
diff --git a/drivers/acpi/acpi_memhotplug.c b/drivers/acpi/acpi_memhotplug.c
index 9aeacdfca410..b67be85ff0fc 100644
--- a/drivers/acpi/acpi_memhotplug.c
+++ b/drivers/acpi/acpi_memhotplug.c
@@ -360,7 +360,19 @@ static void acpi_memory_device_remove(struct acpi_device *device)
360 acpi_memory_device_free(mem_device); 360 acpi_memory_device_free(mem_device);
361} 361}
362 362
363static bool __initdata acpi_no_memhotplug;
364
363void __init acpi_memory_hotplug_init(void) 365void __init acpi_memory_hotplug_init(void)
364{ 366{
367 if (acpi_no_memhotplug)
368 return;
369
365 acpi_scan_add_handler_with_hotplug(&memory_device_handler, "memory"); 370 acpi_scan_add_handler_with_hotplug(&memory_device_handler, "memory");
366} 371}
372
373static int __init disable_acpi_memory_hotplug(char *str)
374{
375 acpi_no_memhotplug = true;
376 return 1;
377}
378__setup("acpi_no_memhotplug", disable_acpi_memory_hotplug);