diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2019-11-30 18:19:52 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2019-11-30 18:19:52 +0000 |
commit | 64aefb982420ffcddda2626c916d63cb0417e0f0 (patch) | |
tree | 39fe39bec020c440404802331865a7c501a853f8 | |
parent | 6f87db94156d742fe7e5450407a44f5dc33e7415 (diff) |
cardbus(4): tsleep(9) -> tsleep_nsec(9); ok jca@
-rw-r--r-- | sys/dev/cardbus/cardbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cardbus/cardbus.c b/sys/dev/cardbus/cardbus.c index 5af8aed42f3..b63830635e9 100644 --- a/sys/dev/cardbus/cardbus.c +++ b/sys/dev/cardbus/cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cardbus.c,v 1.51 2015/08/28 00:03:53 deraadt Exp $ */ +/* $OpenBSD: cardbus.c,v 1.52 2019/11/30 18:19:51 cheloha Exp $ */ /* $NetBSD: cardbus.c,v 1.24 2000/04/02 19:11:37 mycroft Exp $ */ /* @@ -408,8 +408,8 @@ cardbus_attach_card(struct cardbus_softc *sc) if (cold) { /* before kernel thread invoked */ delay(100*1000); } else { /* thread context */ - if (tsleep((void *)sc, PCATCH, "cardbus", - hz/10) != EWOULDBLOCK) { + if (tsleep_nsec(sc, PCATCH, "cardbus", + MSEC_TO_NSEC(100)) != EWOULDBLOCK) { break; } } |