From f2bf96d30fe08965ffd53a28099131ac030e43d5 Mon Sep 17 00:00:00 2001 From: Jung-uk Kim Date: Fri, 28 May 2010 18:46:48 +0000 Subject: Import ACPICA 20100528. --- executer/exsystem.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'executer/exsystem.c') 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 */ -- cgit v1.3