ACPI / PM: Introduce function for refcounting device power resources
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 24 Nov 2010 23:06:55 +0000 (00:06 +0100)
committerLen Brown <len.brown@intel.com>
Wed, 12 Jan 2011 09:48:44 +0000 (04:48 -0500)
commit30d3df41b32b1ea63d3ebc52ef5644cbe41520f4
tree8daf2d042493644776179dc75170c34dca68f743
parentd2ef555b57292cd818934636ac8e3414cc2a6762
ACPI / PM: Introduce function for refcounting device power resources

Introduce function acpi_power_on_resources() that reference counts
and possibly turns on ACPI power resources for a given device and
a given power state of it.

This function will be used for reference counting device power
resources during initialization.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/internal.h
drivers/acpi/power.c