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>
Цей коміт міститься в:
Rafael J. Wysocki
2013-03-03 23:18:03 +01:00
джерело 79917f34ac
коміт 0a34764411
4 змінених файлів з 46 додано та 274 видалено

Переглянути файл

@@ -2026,6 +2026,7 @@ int __init acpi_scan_init(void)
acpi_csrt_init();
acpi_container_init();
acpi_pci_slot_init();
acpi_memory_hotplug_init();
mutex_lock(&acpi_scan_lock);
/*