diff options
author | cheloha <cheloha@cvs.openbsd.org> | 2020-02-18 00:06:13 +0000 |
---|---|---|
committer | cheloha <cheloha@cvs.openbsd.org> | 2020-02-18 00:06:13 +0000 |
commit | 27827499539dbf2a129f75e618198b5a66ff2895 (patch) | |
tree | cc3fde9f56a680f25924adc5a3cf196d49568f95 /sys/dev | |
parent | 883fd5c2c793c77bbb64b379aba5337855b13fec (diff) |
ipmi(4): tsleep(9) -> tsleep_nsec(9)
There remains a polling sleep in this driver. We can fix it separately.
ok mpi@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ipmi.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ipmi.c b/sys/dev/ipmi.c index 594602bfcd1..74ecad0cb30 100644 --- a/sys/dev/ipmi.c +++ b/sys/dev/ipmi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipmi.c,v 1.108 2020/01/11 18:51:54 kettenis Exp $ */ +/* $OpenBSD: ipmi.c,v 1.109 2020/02/18 00:06:12 cheloha Exp $ */ /* * Copyright (c) 2015 Masao Uebayashi @@ -55,7 +55,7 @@ struct ipmi_sensor { int ipmi_enabled = 0; -#define SENSOR_REFRESH_RATE (5 * hz) +#define SENSOR_REFRESH_RATE 5 /* seconds */ #define DEVNAME(s) ((s)->sc_dev.dv_xname) @@ -1498,7 +1498,8 @@ ipmi_poll_thread(void *arg) while (thread->running) { ipmi_refresh_sensors(sc); - tsleep(thread, PWAIT, "ipmi_poll", SENSOR_REFRESH_RATE); + tsleep_nsec(thread, PWAIT, "ipmi_poll", + SEC_TO_NSEC(SENSOR_REFRESH_RATE)); } done: |