summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2019-11-30 18:19:52 +0000
committercheloha <cheloha@cvs.openbsd.org>2019-11-30 18:19:52 +0000
commit64aefb982420ffcddda2626c916d63cb0417e0f0 (patch)
tree39fe39bec020c440404802331865a7c501a853f8
parent6f87db94156d742fe7e5450407a44f5dc33e7415 (diff)
cardbus(4): tsleep(9) -> tsleep_nsec(9); ok jca@
-rw-r--r--sys/dev/cardbus/cardbus.c6
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;
}
}