summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2009-07-24 08:07:40 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2009-07-24 08:07:40 +0000
commitcd49db63f8b79604db53ba3962d535bc0a2e39b5 (patch)
tree320f677a9584fca1787e9d3cf30a087804dfd019 /sys
parent940c85f00aa7564e17b4b5f36be2b692ca1de119 (diff)
timeout_add -> timeout_add_msec
ok kettenis@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/dev/fd.c10
-rw-r--r--sys/arch/sparc64/dev/fd.c10
2 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c
index 38cffc97355..9c99fad9d59 100644
--- a/sys/arch/sparc/dev/fd.c
+++ b/sys/arch/sparc/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.64 2009/04/10 20:53:51 miod Exp $ */
+/* $OpenBSD: fd.c,v 1.65 2009/07/24 08:07:39 blambert Exp $ */
/* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */
/*-
@@ -1307,7 +1307,7 @@ loop:
fdc->sc_state = MOTORWAIT;
if ((fdc->sc_flags & FDC_NEEDMOTORWAIT) != 0) { /* XXX */
/* Allow .25s for motor to stabilize. */
- timeout_add(&fd->fd_motor_on_to, hz / 4);
+ timeout_add_msec(&fd->fd_motor_on_to, 250);
} else {
fd->sc_flags &= ~FD_MOTOR_WAIT;
goto loop;
@@ -1431,7 +1431,7 @@ loop:
fdc->sc_state = SEEKCOMPLETE;
if (fdc->sc_flags & FDC_NEEDHEADSETTLE) {
/* allow 1/50 second for heads to settle */
- timeout_add(&fdc->fdcpseudointr_to, hz / 50);
+ timeout_add_msec(&fdc->fdcpseudointr_to, 20);
return (1); /* will return later */
}
/*FALLTHROUGH*/
@@ -1461,7 +1461,7 @@ loop:
fdc->sc_state = IOCLEANUPWAIT;
fdc->sc_nstat = 0;
/* 1/10 second should be enough */
- timeout_add(&fdc->fdctimeout_to, hz / 10);
+ timeout_add_msec(&fdc->fdctimeout_to, 100);
return (1);
case IOCLEANUPTIMEDOUT:
@@ -1569,7 +1569,7 @@ loop:
fdc->sc_nstat = 0;
fdc->sc_itask = FDC_ITASK_SENSEI;
fdc->sc_state = RESETCOMPLETE;
- timeout_add(&fdc->fdctimeout_to, hz / 2);
+ timeout_add_msec(&fdc->fdctimeout_to, 500);
fdc_reset(fdc);
return (1); /* will return later */
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c
index 4cd37048dcd..f7ea60ad2e9 100644
--- a/sys/arch/sparc64/dev/fd.c
+++ b/sys/arch/sparc64/dev/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.26 2008/10/15 19:12:19 blambert Exp $ */
+/* $OpenBSD: fd.c,v 1.27 2009/07/24 08:07:39 blambert Exp $ */
/* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */
/*-
@@ -1340,7 +1340,7 @@ loop:
fdc->sc_state = MOTORWAIT;
if ((fdc->sc_flags & FDC_NEEDMOTORWAIT) != 0) { /*XXX*/
/* Allow .25s for motor to stabilize. */
- timeout_add(&fd->sc_motoron_to, hz / 4);
+ timeout_add_msec(&fd->sc_motoron_to, 250);
} else {
fd->sc_flags &= ~FD_MOTOR_WAIT;
goto loop;
@@ -1508,7 +1508,7 @@ loop:
fdc->sc_state = SEEKCOMPLETE;
if (fdc->sc_flags & FDC_NEEDHEADSETTLE) {
/* allow 1/50 second for heads to settle */
- timeout_add(&fdc->fdcpseudointr_to, hz / 50);
+ timeout_add_msec(&fdc->fdcpseudointr_to, 20);
return (1); /* will return later */
}
/*FALLTHROUGH*/
@@ -1539,7 +1539,7 @@ loop:
fdc->sc_state = IOCLEANUPWAIT;
fdc->sc_nstat = 0;
/* 1/10 second should be enough */
- timeout_add(&fdc->fdctimeout_to, hz / 10);
+ timeout_add_msec(&fdc->fdctimeout_to, 100);
return (1);
case IOCLEANUPTIMEDOUT:
@@ -1648,7 +1648,7 @@ loop:
fdc->sc_nstat = 0;
fdc->sc_itask = FDC_ITASK_SENSEI;
fdc->sc_state = RESETCOMPLETE;
- timeout_add(&fdc->fdctimeout_to, hz / 2);
+ timeout_add_msec(&fdc->fdctimeout_to, 500);
fdc_reset(fdc);
return (1); /* will return later */