diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-01-11 09:09:10 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-01-11 09:09:10 +0000 |
commit | 5afe13e706ef1776ce4da1a0d1cf727dabe39eee (patch) | |
tree | 17c15358f45225cf7093cb7a343a788efad787ef /sys | |
parent | 26b1d9448322a41d552738b29de114163d09a157 (diff) |
eap(4): tsleep(9) -> tsleep_nsec(9); ok ratchov@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/eap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/eap.c b/sys/dev/pci/eap.c index 6abf0f7972e..18662619337 100644 --- a/sys/dev/pci/eap.c +++ b/sys/dev/pci/eap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eap.c,v 1.57 2019/12/14 12:48:32 fcambus Exp $ */ +/* $OpenBSD: eap.c,v 1.58 2020/01/11 09:09:09 cheloha Exp $ */ /* $NetBSD: eap.c,v 1.46 2001/09/03 15:07:37 reinoud Exp $ */ /* @@ -1536,7 +1536,9 @@ eap_midi_close(void *addr) { struct eap_softc *sc = addr; - tsleep(sc, PWAIT, "eapclm", hz/10); /* give uart a chance to drain */ + /* give uart a chance to drain */ + tsleep_nsec(sc, PWAIT, "eapclm", MSEC_TO_NSEC(100)); + EWRITE1(sc, EAP_UART_CONTROL, 0); EWRITE4(sc, EAP_ICSC, EREAD4(sc, EAP_ICSC) & ~EAP_UART_EN); |