diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-01-15 00:14:48 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-01-15 00:14:48 +0000 |
commit | 0b71dc639d3b9da6dd9f5d21e3e3f7e5ebd8e7ad (patch) | |
tree | 6582a8ba1b9e7ed27ba3b2d804a8e43a7b5d7e23 /sys | |
parent | cd3dfe8f7a93ae564b41cc555ebfc7ba66b1164c (diff) |
mii(4): tsleep(9) -> tlseep_nsec(9); ok mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/mii/mii_physubr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c index 5258c66e143..c5b23cca5a7 100644 --- a/sys/dev/mii/mii_physubr.c +++ b/sys/dev/mii/mii_physubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mii_physubr.c,v 1.45 2015/09/11 13:02:28 stsp Exp $ */ +/* $OpenBSD: mii_physubr.c,v 1.46 2020/01/15 00:14:47 cheloha Exp $ */ /* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */ /*- @@ -199,7 +199,7 @@ mii_phy_auto(struct mii_softc *sc, int waitfor) */ if (sc->mii_flags & MIIF_AUTOTSLEEP) { sc->mii_flags |= MIIF_DOINGAUTO; - tsleep(&sc->mii_flags, PZERO, "miiaut", hz >> 1); + tsleep_nsec(&sc->mii_flags, PZERO, "miiaut", MSEC_TO_NSEC(500)); mii_phy_auto_timeout(sc); } else if ((sc->mii_flags & MIIF_DOINGAUTO) == 0) { sc->mii_flags |= MIIF_DOINGAUTO; |