summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-02-20 15:32:18 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-02-20 15:32:18 +0000
commit6a865c79b58781888823e7e4951589a5fc2e3aa8 (patch)
tree55777dc55c96fa70f34837af63b3c3ba05513c32 /sys/dev/ic
parentbc9352f47c7daa3c62ff74f115857af0983312c0 (diff)
pgt(4): tsleep(9) -> tsleep_nsec(9); ok claudio@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/pgt.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ic/pgt.c b/sys/dev/ic/pgt.c
index c61f1a44ae8..40d8cfe1aea 100644
--- a/sys/dev/ic/pgt.c
+++ b/sys/dev/ic/pgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pgt.c,v 1.97 2020/01/09 14:35:19 mpi Exp $ */
+/* $OpenBSD: pgt.c,v 1.98 2020/02/20 15:32:17 cheloha Exp $ */
/*
* Copyright (c) 2006 Claudio Jeker <claudio@openbsd.org>
@@ -1648,7 +1648,7 @@ pgt_mgmt_request(struct pgt_softc *sc, struct pgt_mgmt_desc *pmd)
{
struct pgt_desc *pd;
struct pgt_mgmt_frame *pmf;
- int error, i;
+ int error, i, ret;
if (sc->sc_flags & (SC_DYING | SC_NEEDS_RESET))
return (EIO);
@@ -1695,7 +1695,8 @@ pgt_mgmt_request(struct pgt_softc *sc, struct pgt_mgmt_desc *pmd)
*/
i = 0;
do {
- if (tsleep(pmd, 0, "pgtmgm", hz / 10) != EWOULDBLOCK)
+ ret = tsleep_nsec(pmd, 0, "pgtmgm", MSEC_TO_NSEC(100));
+ if (ret != EWOULDBLOCK)
break;
if (pmd->pmd_error != EINPROGRESS)
break;