diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-31 22:57:08 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-12-31 22:57:08 +0000 |
commit | a798abaf0b8a82288a72bced3f56166c0f689d38 (patch) | |
tree | 32e2927dbe045f468dc3caa4c12866735c106257 /sys/dev/pci/qle.c | |
parent | 231f4faeb2563a707971e6b18db416cee8e72062 (diff) |
convert infinite msleep(9) to msleep_nsec(9)
ok mpi@ bluhm@
Diffstat (limited to 'sys/dev/pci/qle.c')
-rw-r--r-- | sys/dev/pci/qle.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c index fe9475fc334..33eefebd187 100644 --- a/sys/dev/pci/qle.c +++ b/sys/dev/pci/qle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qle.c,v 1.47 2019/10/16 00:16:35 daniel Exp $ */ +/* $OpenBSD: qle.c,v 1.48 2019/12/31 22:57:07 jsg Exp $ */ /* * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> @@ -1496,8 +1496,8 @@ qle_mbox(struct qle_softc *sc, int maskin) mtx_enter(&sc->sc_mbox_mtx); sc->sc_mbox_pending = 1; while (sc->sc_mbox_pending == 1) { - msleep(sc->sc_mbox, &sc->sc_mbox_mtx, PRIBIO, - "qlembox", 0); + msleep_nsec(sc->sc_mbox, &sc->sc_mbox_mtx, PRIBIO, + "qlembox", INFSLP); } result = sc->sc_mbox[0]; sc->sc_mbox_pending = 0; |