Comments

To achieve best performance for hot-adding and resolve dependencies when
hot-removing, system devices should be configured/unconfigured in
specific order. The optimal order for hot-adding should be "container ->
memory -> CPU -> PCI host bridge" and it should be in reverse order for
hot-removing.
So classify system devices into groups according to types of devices,
and use klist to manage devices belonging to the same group.
Signed-off-by: Hanjun Guo <guohanjun@huawei.com>Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
---
drivers/acpi/hotplug/core.c | 116 +++++++++++++++++++++++++++++++++++++++++++
include/acpi/acpi_hotplug.h | 26 ++++++++++
2 files changed, 142 insertions(+)