Commit 7cdb0d25 authored by David Rientjes's avatar David Rientjes Committed by Linus Torvalds

mm, hotplug: probe interface is available on several platforms

Documentation/memory-hotplug.txt incorrectly states that the memory
driver "probe" interface is only supported on powerpc and is vague about
its application on x86.  Clarify the platforms that make this interface
available if memory hotplug is enabled.
Signed-off-by: default avatarDavid Rientjes <rientjes@google.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b3acc56b
...@@ -209,15 +209,12 @@ If memory device is found, memory hotplug code will be called. ...@@ -209,15 +209,12 @@ If memory device is found, memory hotplug code will be called.
4.2 Notify memory hot-add event by hand 4.2 Notify memory hot-add event by hand
------------ ------------
On powerpc, the firmware does not notify a memory hotplug event to the kernel. On some architectures, the firmware may not notify the kernel of a memory
Therefore, "probe" interface is supported to notify the event to the kernel. hotplug event. Therefore, the memory "probe" interface is supported to
This interface depends on CONFIG_ARCH_MEMORY_PROBE. explicitly notify the kernel. This interface depends on
CONFIG_ARCH_MEMORY_PROBE and can be configured on powerpc, sh, and x86
CONFIG_ARCH_MEMORY_PROBE is supported on powerpc only. On x86, this config if hotplug is supported, although for x86 this should be handled by ACPI
option is disabled by default since ACPI notifies a memory hotplug event to notification.
the kernel, which performs its hotplug operation as the result. Please
enable this option if you need the "probe" interface for testing purposes
on x86.
Probe interface is located at Probe interface is located at
/sys/devices/system/memory/probe /sys/devices/system/memory/probe
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment