From 25aaeac2e7ff4e81296b12f4c7c9ae1e6369da89 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Thu, 9 Jan 2020 14:35:21 +0000 Subject: Convert sleeps of 1sec or more to tsleep_nsec(9). ok bluhm@ --- sys/dev/acpi/tipmic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys/dev/acpi') 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 * @@ -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; } -- cgit v1.2.3