svn commit: r204920 - head/sys/contrib/dev/acpica/hardware

Jung-uk Kim jkim at FreeBSD.org
Tue Mar 9 19:39:53 UTC 2010


Author: jkim
Date: Tue Mar  9 19:39:52 2010
New Revision: 204920
URL: http://svn.freebsd.org/changeset/base/204920

Log:
  Since the interpreter slack mode is a tunable now, enable a local hack only
  when it is set.  Note the default behaviour does not change by this change.

Modified:
  head/sys/contrib/dev/acpica/hardware/hwsleep.c

Modified: head/sys/contrib/dev/acpica/hardware/hwsleep.c
==============================================================================
--- head/sys/contrib/dev/acpica/hardware/hwsleep.c	Tue Mar  9 19:31:08 2010	(r204919)
+++ head/sys/contrib/dev/acpica/hardware/hwsleep.c	Tue Mar  9 19:39:52 2010	(r204920)
@@ -474,13 +474,16 @@ AcpiEnterSleepState (
             return_ACPI_STATUS (Status);
         }
 
-        /*
-         * Some BIOSs don't set WAK_STS at all.  Give up waiting after
-         * 1000 retries if it still isn't set.
-         */
-        if (Retry-- == 0)
+        if (AcpiGbl_EnableInterpreterSlack)
         {
-            break;
+            /*
+             * Some BIOSs don't set WAK_STS at all.  Give up waiting after
+             * 1000 retries if it still isn't set.
+             */
+            if (Retry-- == 0)
+            {
+                break;
+            }
         }
 
         /* Spin until we wake */


More information about the svn-src-head mailing list