diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-11-25 00:07:56 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 10:48:44 +0100 |
commit | 5e6d4fe4296782f1f095575b8213a97c3e925a16 (patch) | |
tree | 3d2376b9b18536acfa20777172ab132a475bb0ae /drivers/acpi/scan.c | |
parent | ACPI / PM: Introduce function for refcounting device power resources (diff) | |
download | linux-5e6d4fe4296782f1f095575b8213a97c3e925a16.tar.xz linux-5e6d4fe4296782f1f095575b8213a97c3e925a16.zip |
ACPI / PM: Introduce __acpi_bus_get_power()
It sometimes is necessary to get the power state of an ACPI device
without updating its device->power.state field, for example to
avoid inconsistencies between device->power.state and the reference
counters of the device's power resources. For this purpose introduce
__acpi_bus_get_power() that will return the given device's power
state via a pointer (instead of modifying device->power.state)
and make acpi_bus_get_power() use it.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
0 files changed, 0 insertions, 0 deletions