diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-11-25 02:09:15 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2011-01-12 12:48:45 +0300 |
commit | 25eed40720fc9005c63a1f436e5f8a78836c26ff (patch) | |
tree | 2c927e50d57c2e456d9ceaa575c1bb774627ee10 /firmware | |
parent | ade3e7fef794781c0798d0cf0f046123842ba550 (diff) | |
download | linux-25eed40720fc9005c63a1f436e5f8a78836c26ff.tar.xz |
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 'firmware')
0 files changed, 0 insertions, 0 deletions