diff options
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/tipmic.c | 5 |
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; } |