summaryrefslogtreecommitdiff
path: root/drivers/acpi/internal.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2010-11-25 02:06:09 +0300
committerLen Brown <len.brown@intel.com>2011-01-12 12:48:43 +0300
commitd2ef555b57292cd818934636ac8e3414cc2a6762 (patch)
tree6fbe86ad458f20f146dbfb22d624052c644f9ac0 /drivers/acpi/internal.h
parent32a00d274e877eab3ea7ab196b75c9be5170d25e (diff)
downloadlinux-d2ef555b57292cd818934636ac8e3414cc2a6762.tar.xz
ACPI / PM: Add functions for manipulating lists of power resources
ACPI device power resources should be reference counted during device initialization, so that their reference counters are always up to date. It is convenient to do that with the help of a function that will reference count and possibly turn on power resources in a given list, so introduce that function, acpi_power_on_list(). For symmetry, introduce acpi_power_off_list() for performing the reverse operation and use the both of them to simplify acpi_power_transition(). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/internal.h')
0 files changed, 0 insertions, 0 deletions