ACPI / PM: Add more run-time wake-up fields
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 17 Feb 2010 22:41:49 +0000 (23:41 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:20:51 +0000 (16:20 -0800)
commitf517709d65beed95f52f021b43e3035b52ef791a
treedd814cb7dc6b211fc6c31cadab1b77c12c137775
parent9630bdd9b15d2f489c646d8bc04b60e53eb5ec78
ACPI / PM: Add more run-time wake-up fields

Use the run_wake flag to mark all devices for which run-time wake-up
events may be generated by the platform.  Introduce a new wake-up
flag, always_enabled, for marking devices that should be permanently
enabled to generate run-time events.  Also, introduce a reference
counter for run-wake devices and a function that will initialize all
of the run-time wake-up fields for given device.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Len Brown <len.brown@intel.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/acpi/button.c
drivers/acpi/scan.c
drivers/acpi/wakeup.c
include/acpi/acpi_bus.h