summaryrefslogtreecommitdiff
path: root/executer/exsystem.c
diff options
context:
space:
mode:
Diffstat (limited to 'executer/exsystem.c')
-rw-r--r--executer/exsystem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/executer/exsystem.c b/executer/exsystem.c
index 8f4ccfe37140..0217ef53ffac 100644
--- a/executer/exsystem.c
+++ b/executer/exsystem.c
@@ -302,6 +302,15 @@ AcpiExSystemDoSleep (
AcpiExRelinquishInterpreter ();
+ /*
+ * For compatibility with other ACPI implementations and to prevent
+ * accidental deep sleeps, limit the sleep time to something reasonable.
+ */
+ if (HowLong > ACPI_MAX_SLEEP)
+ {
+ HowLong = ACPI_MAX_SLEEP;
+ }
+
AcpiOsSleep (HowLong);
/* And now we must get the interpreter again */