summaryrefslogtreecommitdiff
path: root/drivers/acpi/acpica/acconfig.h
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2010-05-26 11:22:41 +0800
committerLen Brown <len.brown@intel.com>2010-06-12 00:55:17 -0400
commit9cbfa18e8a7b34a32eddbd914a07f085962f50a8 (patch)
tree4ef8f4055af728372b94b1a9fb07b0eff09bea30 /drivers/acpi/acpica/acconfig.h
parentd70326689b70b35527765bd3decbb1229459e928 (diff)
ACPICA: Limit maximum time for Sleep() operator
To prevent accidental deep sleeps, limit the maximum time that Sleep() will sleep. Configurable, default maximum is two seconds. ACPICA bugzilla 854. http://www.acpica.org/bugzilla/show_bug.cgi?id=854 Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/acconfig.h')
-rw-r--r--drivers/acpi/acpica/acconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/acconfig.h b/drivers/acpi/acpica/acconfig.h
index 33181ad350d5..b17d8de9f6ff 100644
--- a/drivers/acpi/acpica/acconfig.h
+++ b/drivers/acpi/acpica/acconfig.h
@@ -119,6 +119,10 @@
#define ACPI_MAX_LOOP_ITERATIONS 0xFFFF
+/* Maximum sleep allowed via Sleep() operator */
+
+#define ACPI_MAX_SLEEP 20000 /* Two seconds */
+
/******************************************************************************
*
* ACPI Specification constants (Do not change unless the specification changes)