summaryrefslogtreecommitdiff
path: root/sys/dev/pci/bktr
diff options
context:
space:
mode:
authorcheloha <cheloha@cvs.openbsd.org>2020-01-11 08:24:09 +0000
committercheloha <cheloha@cvs.openbsd.org>2020-01-11 08:24:09 +0000
commitf50e3bcfeb9d255b4d3be0ff54c5de9c0a6f8e2d (patch)
tree345e53c685aef034b1d00d51332c1d15f9615b97 /sys/dev/pci/bktr
parenta8b8dc28eecdf17f7e7a41325da65ec0f95dedf8 (diff)
bktr(4): one more tsleep(9) -> tsleep_nsec(9) conversion; ok ratchov@
Diffstat (limited to 'sys/dev/pci/bktr')
-rw-r--r--sys/dev/pci/bktr/bktr_tuner.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/bktr/bktr_tuner.c b/sys/dev/pci/bktr/bktr_tuner.c
index 859aecff755..cc35544e636 100644
--- a/sys/dev/pci/bktr/bktr_tuner.c
+++ b/sys/dev/pci/bktr/bktr_tuner.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bktr_tuner.c,v 1.8 2015/03/14 03:38:49 jsg Exp $ */
+/* $OpenBSD: bktr_tuner.c,v 1.9 2020/01/11 08:24:08 cheloha Exp $ */
/* $FreeBSD: src/sys/dev/bktr/bktr_tuner.c,v 1.9 2000/10/19 07:33:28 roger Exp $ */
/*
@@ -900,7 +900,7 @@ do_afc( bktr_ptr_t bktr, int addr, int frequency )
origFrequency = frequency;
/* wait for first setting to take effect */
- tsleep( BKTR_SLEEP, PZERO, "tuning", hz/8 );
+ tsleep_nsec( BKTR_SLEEP, PZERO, "tuning", MSEC_TO_NSEC(1000 / 8) );
if ( (status = i2cRead( bktr, addr + 1 )) < 0 )
return( -1 );