diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-01-15 00:17:22 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-01-15 00:17:22 +0000 |
commit | 2b84d60117507fb65fe1b338c77896d34ed542cc (patch) | |
tree | cb50c37afa7fb42ed0c3eeb82dd96294edf4db11 | |
parent | 0b71dc639d3b9da6dd9f5d21e3e3f7e5ebd8e7ad (diff) |
qle(4): tsleep(9) -> tsleep_nsec(9)
These sleeps doesn't have any units, though on 100hz platforms they
are effectively 1 second sleeps. jmatthew@ says 1 second is fine, so
we'll keep them that way.
ok jmatthew@
-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; |