From 64aefb982420ffcddda2626c916d63cb0417e0f0 Mon Sep 17 00:00:00 2001 From: cheloha Date: Sat, 30 Nov 2019 18:19:52 +0000 Subject: cardbus(4): tsleep(9) -> tsleep_nsec(9); ok jca@ --- sys/dev/cardbus/cardbus.c | 6 +++--- 1 file 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; } } -- cgit v1.2.3