From: Rafael J. Wysocki Date: Wed, 24 Nov 2010 23:09:15 +0000 (+0100) Subject: ACPI / PM: Add function for updating device power state consistently X-Git-Tag: v2.6.38-rc1~68^2~20^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25eed40720fc9005c63a1f436e5f8a78836c26ff;p=pandora-kernel.git 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 Signed-off-by: Len Brown --- Reading git-diff-tree failed