summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-09 14:35:21 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-09 14:35:21 +0000
commit25aaeac2e7ff4e81296b12f4c7c9ae1e6369da89 (patch)
tree0f8f6679b0fd02d5814725a02c6390bd0e87ac9c /sys/dev/acpi
parent2a3120725f4d4b08fb2361463775f11844321eb0 (diff)
Convert sleeps of 1sec or more to tsleep_nsec(9).
ok bluhm@
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/tipmic.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/acpi/tipmic.c b/sys/dev/acpi/tipmic.c
index 51ebd3569d4..e8f027c24f4 100644
--- a/sys/dev/acpi/tipmic.c
+++ b/sys/dev/acpi/tipmic.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tipmic.c,v 1.4 2019/04/04 06:33:10 kettenis Exp $ */
+/* $OpenBSD: tipmic.c,v 1.5 2020/01/09 14:35:19 mpi Exp $ */
/*
* Copyright (c) 2018 Mark Kettenis <kettenis@openbsd.org>
*
@@ -333,7 +333,8 @@ tipmic_thermal_opreg_handler(void *cookie, int iodir, uint64_t address,
splx(s);
while (sc->sc_stat_adc == 0) {
- if (tsleep(&sc->sc_stat_adc, PRIBIO, "tipmic", hz)) {
+ if (tsleep_nsec(&sc->sc_stat_adc, PRIBIO, "tipmic",
+ SEC_TO_NSEC(1))) {
printf("%s: ADC timeout\n", sc->sc_dev.dv_xname);
break;
}