summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-01-11 09:08:40 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-01-11 09:08:40 +0000
commit26b1d9448322a41d552738b29de114163d09a157 (patch)
treede243ad982219c74bdfe72c76ed68196224b0f03 /sys/dev/pci
parentf50e3bcfeb9d255b4d3be0ff54c5de9c0a6f8e2d (diff)
autri(4): tsleep(9) -> tsleep_nsec(9); ok ratchov@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/autri.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/autri.c b/sys/dev/pci/autri.c
index 917af10058f..7f85a254b81 100644
--- a/sys/dev/pci/autri.c
+++ b/sys/dev/pci/autri.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autri.c,v 1.43 2019/12/04 20:21:35 fcambus Exp $ */
+/* $OpenBSD: autri.c,v 1.44 2020/01/11 09:08:39 cheloha Exp $ */
/*
* Copyright (c) 2001 SOMEYA Yoshihiko and KUROSAWA Takahiro.
@@ -1352,7 +1352,8 @@ autri_midi_close(void *addr)
DPRINTF(("autri_midi_close()\n"));
- tsleep(sc, PWAIT, "autri", hz/10); /* give uart a chance to drain */
+ /* give uart a chance to drain */
+ tsleep_nsec(sc, PWAIT, "autri", MSEC_TO_NSEC(100));
sc->sc_iintr = NULL;
sc->sc_ointr = NULL;