summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-03-09 19:39:52 +0000
committerjkim <jkim@FreeBSD.org>2010-03-09 19:39:52 +0000
commitf113de4c54a20fdc00751347fc885af20259101d (patch)
treeba19eea3640b433f6ba72da2f287c94416e35a70 /sys/contrib/dev
parent2bd2be1b085644c3d4c9e130f2ef246a5479bb36 (diff)
downloadFreeBSD-src-f113de4c54a20fdc00751347fc885af20259101d.zip
FreeBSD-src-f113de4c54a20fdc00751347fc885af20259101d.tar.gz
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.
Diffstat (limited to 'sys/contrib/dev')
-rw-r--r--sys/contrib/dev/acpica/hardware/hwsleep.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/sys/contrib/dev/acpica/hardware/hwsleep.c b/sys/contrib/dev/acpica/hardware/hwsleep.c
index 8c543ca..913deb3 100644
--- a/sys/contrib/dev/acpica/hardware/hwsleep.c
+++ b/sys/contrib/dev/acpica/hardware/hwsleep.c
@@ -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 */
OpenPOWER on IntegriCloud