diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2009-08-05 13:45:30 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2009-08-05 13:45:30 +0000 |
commit | 584ad849718300e719b0c35389723c9c65349846 (patch) | |
tree | 73ef443f3c42379acdcd905fff7d2ad1bcfb2425 | |
parent | 9b0301636acb46db3482bee762c85b64cc6b7633 (diff) |
timeout_add -> timeout_add_msec
ok krw@
-rw-r--r-- | sys/dev/isa/fd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c index 1e8c2f787c4..893b73d7e5d 100644 --- a/sys/dev/isa/fd.c +++ b/sys/dev/isa/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.76 2009/06/02 12:32:08 deraadt Exp $ */ +/* $OpenBSD: fd.c,v 1.77 2009/08/05 13:45:29 blambert Exp $ */ /* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */ /*- @@ -734,7 +734,7 @@ loop: fd_set_motor(fdc, 0); fdc->sc_state = MOTORWAIT; /* Allow .25s for motor to stabilize. */ - timeout_add(&fd->fd_motor_on_to, hz / 4); + timeout_add_msec(&fd->fd_motor_on_to, 250); return 1; } /* Make sure the right drive is selected. */ @@ -834,7 +834,7 @@ loop: timeout_del(&fd->fdtimeout_to); fdc->sc_state = SEEKCOMPLETE; /* allow 1/50 second for heads to settle */ - timeout_add(&fdc->fdcpseudointr_to, hz / 50); + timeout_add_msec(&fdc->fdcpseudointr_to, 20); return 1; case SEEKCOMPLETE: @@ -902,7 +902,7 @@ loop: delay(100); fd_set_motor(fdc, 0); fdc->sc_state = RESETCOMPLETE; - timeout_add(&fd->fdtimeout_to, hz / 2); + timeout_add_msec(&fd->fdtimeout_to, 500); return 1; /* will return later */ case RESETCOMPLETE: |