aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-22 15:55:07 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-11-22 15:55:07 -0500
commitc27b2c33b6215eeb3d5c290ac889ab6d543f6207 (patch)
tree5eba733de6ca18f682e2704069c8a014e93fa26b /drivers/acpi/internal.h
parent1ceaba05b4afb4bd7b4b4801f2718c13f59321eb (diff)
ACPI / hotplug: Introduce common hotplug function acpi_device_hotplug()
Modify the common ACPI device hotplug code to always queue up the same function, acpi_device_hotplug(), using acpi_hotplug_execute() and make the PCI host bridge hotplug code use that function too for device hot removal. This allows some code duplication to be reduced and a race condition where the relevant ACPI handle may become invalid between the notification handler and the function queued up by it via acpi_hotplug_execute() to be avoided. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
-rw-r--r--drivers/acpi/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/internal.h b/drivers/acpi/internal.h
index 809b8082c134..a0d42cf5b0c5 100644
--- a/drivers/acpi/internal.h
+++ b/drivers/acpi/internal.h
@@ -89,7 +89,7 @@ void acpi_device_add_finalize(struct acpi_device *device);
89void acpi_free_pnp_ids(struct acpi_device_pnp *pnp); 89void acpi_free_pnp_ids(struct acpi_device_pnp *pnp);
90int acpi_bind_one(struct device *dev, acpi_handle handle); 90int acpi_bind_one(struct device *dev, acpi_handle handle);
91int acpi_unbind_one(struct device *dev); 91int acpi_unbind_one(struct device *dev);
92void acpi_bus_device_eject(void *data, u32 ost_src); 92void acpi_device_hotplug(void *data, u32 ost_src);
93bool acpi_device_is_present(struct acpi_device *adev); 93bool acpi_device_is_present(struct acpi_device *adev);
94 94
95/* -------------------------------------------------------------------------- 95/* --------------------------------------------------------------------------