summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2010-07-28 07:32:16 +0000
committermlarkin <mlarkin@openbsd.org>2010-07-28 07:32:16 +0000
commitf4b995ab0fc4c31c9955644e7ef8cd4410352c47 (patch)
tree95604c060237ec7ee1837009d1ae7e10b2469799
parentpfsync_bulk_fail was mucking around with pfsync_softc and sending packets (diff)
downloadwireguard-openbsd-f4b995ab0fc4c31c9955644e7ef8cd4410352c47.tar.xz
wireguard-openbsd-f4b995ab0fc4c31c9955644e7ef8cd4410352c47.zip
Delay a little longer on suspend before giving up. Fixes machines that
sometimes don't suspend because the sleep transition takes too long (symptoms like failing to sleep but the backlight stays on). ok deraadt@
-rw-r--r--sys/dev/acpi/acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi.c b/sys/dev/acpi/acpi.c
index de3ebdb7320..ec5cfaa525a 100644
--- a/sys/dev/acpi/acpi.c
+++ b/sys/dev/acpi/acpi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi.c,v 1.195 2010/07/27 23:33:21 deraadt Exp $ */
+/* $OpenBSD: acpi.c,v 1.196 2010/07/28 07:32:16 mlarkin Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -1728,7 +1728,7 @@ acpi_enter_sleep_state(struct acpi_softc *sc, int state)
if ((rega & ACPI_PM1_WAK_STS) ||
(regb & ACPI_PM1_WAK_STS))
break;
- DELAY(10);
+ DELAY(1000);
}
return (-1);