summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2007-02-21 20:46:57 +0000
committermarco <marco@openbsd.org>2007-02-21 20:46:57 +0000
commit92b64f3b5ab8da6ee2ad6dd159a3755384b32a74 (patch)
treed11ded84877d091fc27a5ba7f2abcfee131ae620
parentpart missed in PAE revert: ptoa() paddr_t size is no longer printed (diff)
downloadwireguard-openbsd-92b64f3b5ab8da6ee2ad6dd159a3755384b32a74.tar.xz
wireguard-openbsd-92b64f3b5ab8da6ee2ad6dd159a3755384b32a74.zip
Fix stuttering audio playback as reported by Igor Grabin.
Tested by several folks and ok canacar
-rw-r--r--sys/dev/acpi/acpiec.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpiec.c b/sys/dev/acpi/acpiec.c
index 5870f93cac2..c5cc1e7d4a6 100644
--- a/sys/dev/acpi/acpiec.c
+++ b/sys/dev/acpi/acpiec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiec.c,v 1.17 2007/02/21 04:12:47 marco Exp $ */
+/* $OpenBSD: acpiec.c,v 1.18 2007/02/21 20:46:57 marco Exp $ */
/*
* Copyright (c) 2006 Can Erkin Acar <canacar@openbsd.org>
*
@@ -126,7 +126,10 @@ acpiec_wait(struct acpiec_softc *sc, u_int8_t mask, u_int8_t val)
while (((stat = acpiec_status(sc)) & mask) != val) {
if (stat & EC_STAT_SCI_EVT)
sc->sc_gotsci = 1;
- delay(1);
+ if (cold)
+ delay(1);
+ else
+ tsleep(sc, PWAIT, "ecwait", 1);
}
dnprintf(40, "%s: EC wait_ns, stat: %b\n", DEVNAME(sc), (int)stat,