diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-17 17:41:49 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 19:20:51 -0500 |
commit | f517709d65beed95f52f021b43e3035b52ef791a (patch) | |
tree | dd814cb7dc6b211fc6c31cadab1b77c12c137775 /drivers/acpi/wakeup.c | |
parent | 9630bdd9b15d2f489c646d8bc04b60e53eb5ec78 (diff) |
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>
Diffstat (limited to 'drivers/acpi/wakeup.c')
-rw-r--r-- | drivers/acpi/wakeup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/acpi/wakeup.c b/drivers/acpi/wakeup.c index 6783986c7469..4b9d339a6e28 100644 --- a/drivers/acpi/wakeup.c +++ b/drivers/acpi/wakeup.c | |||
@@ -110,7 +110,8 @@ int __init acpi_wakeup_device_init(void) | |||
110 | struct acpi_device, | 110 | struct acpi_device, |
111 | wakeup_list); | 111 | wakeup_list); |
112 | /* In case user doesn't load button driver */ | 112 | /* In case user doesn't load button driver */ |
113 | if (!dev->wakeup.flags.run_wake || dev->wakeup.state.enabled) | 113 | if (!dev->wakeup.flags.always_enabled || |
114 | dev->wakeup.state.enabled) | ||
114 | continue; | 115 | continue; |
115 | acpi_enable_gpe(dev->wakeup.gpe_device, dev->wakeup.gpe_number, | 116 | acpi_enable_gpe(dev->wakeup.gpe_device, dev->wakeup.gpe_number, |
116 | ACPI_GPE_TYPE_WAKE); | 117 | ACPI_GPE_TYPE_WAKE); |