summaryrefslogtreecommitdiff
path: root/drivers/acpi/scan.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-11-25 00:09:15 +0100
committerLen Brown <len.brown@intel.com>2011-01-12 04:48:45 -0500
commit25eed40720fc9005c63a1f436e5f8a78836c26ff (patch)
tree2c927e50d57c2e456d9ceaa575c1bb774627ee10 /drivers/acpi/scan.c
parentade3e7fef794781c0798d0cf0f046123842ba550 (diff)
ACPI / PM: Add function for updating device power state consistently
Add function acpi_bus_update_power() for reading the actual power state of an ACPI device and updating its device->power.state field in such a way that its power resources' reference counters will remain consistent with that field. For this purpose introduce __acpi_bus_set_power() setting the power state of an ACPI device without updating its device->power.state field and make acpi_bus_set_power() and acpi_bus_update_power() use it (acpi_bus_set_power() retains the current behavior for now). 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