From cd49db63f8b79604db53ba3962d535bc0a2e39b5 Mon Sep 17 00:00:00 2001 From: Bret Lambert Date: Fri, 24 Jul 2009 08:07:40 +0000 Subject: timeout_add -> timeout_add_msec ok kettenis@ --- sys/arch/sparc/dev/fd.c | 10 +++++----- sys/arch/sparc64/dev/fd.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'sys') 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 */ -- cgit v1.2.3