summaryrefslogtreecommitdiff
path: root/sys/dev/ipmi.c
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-12-11 04:00:34 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-12-11 04:00:34 +0000
commit931a2427610fac267eef7b4ef3a4add5d594086f (patch)
tree520a73b6bb55181179bf63558fdd5f47b05051a7 /sys/dev/ipmi.c
parentea72597582add131428a1dc33924e2d313161371 (diff)
ipmi(4): tsleep(9) -> tsleep_nsec(9)
Tested by sthen@. ok mpi@
Diffstat (limited to 'sys/dev/ipmi.c')
-rw-r--r--sys/dev/ipmi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c
index 9d8ea970628..62e1ddad566 100644
--- a/sys/dev/ipmi.c
+++ b/sys/dev/ipmi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ipmi.c,v 1.112 2020/03/29 09:31:10 kettenis Exp $ */
+/* $OpenBSD: ipmi.c,v 1.113 2020/12/11 04:00:33 cheloha Exp $ */
/*
* Copyright (c) 2015 Masao Uebayashi
@@ -1497,7 +1497,8 @@ ipmi_poll_thread(void *arg)
printf("%s: no SDRs IPMI disabled\n", DEVNAME(sc));
goto done;
}
- while (tsleep(sc, PWAIT, "ipmirun", 1) != EWOULDBLOCK)
+ while (tsleep_nsec(sc, PWAIT, "ipmirun",
+ MSEC_TO_NSEC(1)) != EWOULDBLOCK)
continue;
}