|
@@ -201,6 +201,14 @@ acpi_status acpi_ex_system_do_sleep(u64 how_long)
|
|
|
|
|
|
acpi_ex_relinquish_interpreter();
|
|
acpi_ex_relinquish_interpreter();
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ * For compatibility with other ACPI implementations and to prevent
|
|
|
|
+ * accidental deep sleeps, limit the sleep time to something reasonable.
|
|
|
|
+ */
|
|
|
|
+ if (how_long > ACPI_MAX_SLEEP) {
|
|
|
|
+ how_long = ACPI_MAX_SLEEP;
|
|
|
|
+ }
|
|
|
|
+
|
|
acpi_os_sleep(how_long);
|
|
acpi_os_sleep(how_long);
|
|
|
|
|
|
/* And now we must get the interpreter again */
|
|
/* And now we must get the interpreter again */
|