aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-03 18:43:17 -0500
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-02-05 11:41:26 -0500
commite525506fcb67a9bbd94f01eac84af802139004eb (patch)
tree505ec664227aa70fc7fa3a7f21bcfe45983ca979 /include
parent78ea4639a7647f2fcc957c3a532bde49df9895c7 (diff)
ACPI / hotplug / PCI: Define hotplug context lock in the core
Subsequent changes will require the ACPI core to acquire the lock protecting the ACPIPHP hotplug contexts, so move the definition of the lock to the core and change its name to be more generic. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 94fd61a0456d..0c82708ff08a 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -404,6 +404,8 @@ static inline bool acpi_bus_can_wakeup(acpi_handle handle) { return false; }
404 404
405void acpi_scan_lock_acquire(void); 405void acpi_scan_lock_acquire(void);
406void acpi_scan_lock_release(void); 406void acpi_scan_lock_release(void);
407void acpi_lock_hp_context(void);
408void acpi_unlock_hp_context(void);
407int acpi_scan_add_handler(struct acpi_scan_handler *handler); 409int acpi_scan_add_handler(struct acpi_scan_handler *handler);
408int acpi_bus_register_driver(struct acpi_driver *driver); 410int acpi_bus_register_driver(struct acpi_driver *driver);
409void acpi_bus_unregister_driver(struct acpi_driver *driver); 411void acpi_bus_unregister_driver(struct acpi_driver *driver);