summaryrefslogtreecommitdiffstats
path: root/include/acpi/acpi_bus.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-07-07 03:34:11 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-07 16:26:14 -0700
commit0af4b8c4fb31193dc666f4893107a18fef82baab (patch)
tree1b7a3b95a24b603422b50312ace25d754786874a /include/acpi/acpi_bus.h
parent77e766099efc29d8b01db4b8244ff64fa3d3d0ca (diff)
downloadop-kernel-dev-0af4b8c4fb31193dc666f4893107a18fef82baab.zip
op-kernel-dev-0af4b8c4fb31193dc666f4893107a18fef82baab.tar.gz
ACPI: Introduce new device wakeup flag 'prepared'
Introduce additional flag 'prepared' in struct acpi_device_wakeup_flags and use it to prevent devices from being enable/disabled do wake up the system multiple times in a row (this does not happen currently, but will be possible after some of the following patches). Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/acpi/acpi_bus.h')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 0c21ea3..071daf8 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -259,6 +259,7 @@ struct acpi_device_perf {
/* Wakeup Management */
struct acpi_device_wakeup_flags {
u8 valid:1; /* Can successfully enable wakeup? */
+ u8 prepared:1; /* Has the wake-up capability been enabled? */
u8 run_wake:1; /* Run-Wake GPE devices */
};
OpenPOWER on IntegriCloud