-
- Downloads
ACPI / hotplug / PCI: Hotplug notifications from acpi_bus_notify()
Since acpi_bus_notify() is executed on all notifications for all
devices anyway, make it execute acpi_device_hotplug() for all
hotplug events instead of installing notify handlers pointing to
the same function for all hotplug devices.
This change reduces both the size and complexity of ACPI-based device
hotplug code. Moreover, since acpi_device_hotplug() only does
significant things for devices that have either an ACPI scan handler,
or a hotplug context with .eject() defined, and those devices
had notify handlers pointing to acpi_hotplug_notify_cb() installed
before anyway, this modification shouldn't change functionality.
Signed-off-by:
Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Showing
- drivers/acpi/bus.c 38 additions, 23 deletionsdrivers/acpi/bus.c
- drivers/acpi/internal.h 1 addition, 0 deletionsdrivers/acpi/internal.h
- drivers/acpi/scan.c 5 additions, 76 deletionsdrivers/acpi/scan.c
- drivers/pci/hotplug/acpiphp.h 0 additions, 1 deletiondrivers/pci/hotplug/acpiphp.h
- drivers/pci/hotplug/acpiphp_glue.c 13 additions, 11 deletionsdrivers/pci/hotplug/acpiphp_glue.c
- include/acpi/acpi_bus.h 0 additions, 2 deletionsinclude/acpi/acpi_bus.h
Loading
Please register or sign in to comment