diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-03 17:18:03 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-03-04 08:25:32 -0500 |
commit | 0a34764411aaab0114aa3f3656fda33a69a46d10 (patch) | |
tree | 1aa704709ecafeda634418f22ca9bea406dfc6ae /drivers/acpi/scan.c | |
parent | 79917f34ac83140c20b06303b608ce6d740f0266 (diff) |
ACPI / scan: Make memory hotplug driver use struct acpi_scan_handler
Make the ACPI memory hotplug driver use struct acpi_scan_handler
for representing the object used to set up ACPI memory hotplug
functionality and to remove hotplug memory ranges and data
structures used by the driver before unregistering ACPI device
nodes representing memory. Register the new struct acpi_scan_handler
object with the help of acpi_scan_add_handler_with_hotplug() to allow
user space to manipulate the attributes of the memory hotplug
profile.
This results in a significant reduction of the drvier's code size
and removes some ACPI hotplug code duplication.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 5458403c8249..d69d77ab9c7e 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -2026,6 +2026,7 @@ int __init acpi_scan_init(void) | |||
2026 | acpi_csrt_init(); | 2026 | acpi_csrt_init(); |
2027 | acpi_container_init(); | 2027 | acpi_container_init(); |
2028 | acpi_pci_slot_init(); | 2028 | acpi_pci_slot_init(); |
2029 | acpi_memory_hotplug_init(); | ||
2029 | 2030 | ||
2030 | mutex_lock(&acpi_scan_lock); | 2031 | mutex_lock(&acpi_scan_lock); |
2031 | /* | 2032 | /* |