diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-06 19:42:09 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-11-06 19:42:09 -0500 |
commit | 43d388832bd3e413e9b5e6f3caef4b0844b901af (patch) | |
tree | 0a95011781ad5a4286761fd17ed2f5c285b5e02a /drivers/acpi/scan.c | |
parent | a3b1b1ef78cd2ffb5d3a223465064dee05929dc3 (diff) |
ACPI / hotplug: Carry out PCI root eject directly
Since _handle_hotplug_event_root() is run from the ACPI hotplug
workqueue, it doesn't need to queue up a work item to eject a PCI
host bridge on the same workqueue. Instead, it can just carry out
the eject by calling acpi_bus_device_eject() directly, so make that
happen.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 4a0a591feed3..c7317fe213bf 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -285,7 +285,7 @@ static int acpi_scan_hot_remove(struct acpi_device *device) | |||
285 | return 0; | 285 | return 0; |
286 | } | 286 | } |
287 | 287 | ||
288 | static void acpi_bus_device_eject(struct acpi_device *device, u32 ost_src) | 288 | void acpi_bus_device_eject(struct acpi_device *device, u32 ost_src) |
289 | { | 289 | { |
290 | acpi_handle handle = device->handle; | 290 | acpi_handle handle = device->handle; |
291 | struct acpi_scan_handler *handler; | 291 | struct acpi_scan_handler *handler; |
@@ -409,7 +409,7 @@ static void acpi_hotplug_unsupported(acpi_handle handle, u32 type) | |||
409 | * acpi_bus_hot_remove_device: Hot-remove a device and its children. | 409 | * acpi_bus_hot_remove_device: Hot-remove a device and its children. |
410 | * @context: Address of the ACPI device object to hot-remove. | 410 | * @context: Address of the ACPI device object to hot-remove. |
411 | */ | 411 | */ |
412 | void acpi_bus_hot_remove_device(void *context) | 412 | static void acpi_bus_hot_remove_device(void *context) |
413 | { | 413 | { |
414 | acpi_bus_device_eject(context, ACPI_NOTIFY_EJECT_REQUEST); | 414 | acpi_bus_device_eject(context, ACPI_NOTIFY_EJECT_REQUEST); |
415 | } | 415 | } |