diff options
-rw-r--r-- | sys/dev/pci/qle.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/qle.c b/sys/dev/pci/qle.c index 33eefebd187..513e2d198bf 100644 --- a/sys/dev/pci/qle.c +++ b/sys/dev/pci/qle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qle.c,v 1.48 2019/12/31 22:57:07 jsg Exp $ */ +/* $OpenBSD: qle.c,v 1.49 2020/01/15 00:17:21 cheloha Exp $ */ /* * Copyright (c) 2013, 2014 Jonathan Matthew <jmatthew@openbsd.org> @@ -1886,7 +1886,8 @@ qle_ct_pass_through(struct qle_softc *sc, u_int32_t port_handle, if (qle_read_isr(sc, &isr, &info) != 0) qle_handle_intr(sc, isr, info); } else { - tsleep(sc->sc_scratch, PRIBIO, "qle_fabric", 100); + tsleep_nsec(sc->sc_scratch, PRIBIO, "qle_fabric", + SEC_TO_NSEC(1)); } } if (rv == 0) @@ -2014,7 +2015,8 @@ qle_fabric_plogx(struct qle_softc *sc, struct qle_fc_port *port, int flags, if (qle_read_isr(sc, &isr, &info) != 0) qle_handle_intr(sc, isr, info); } else { - tsleep(sc->sc_scratch, PRIBIO, "qle_fabric", 100); + tsleep_nsec(sc->sc_scratch, PRIBIO, "qle_fabric", + SEC_TO_NSEC(1)); } } sc->sc_fabric_pending = 0; |