summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-21 21:54:01 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2009-01-21 21:54:01 +0000
commitebcf515942389f0e738f6323c8b553ceabee63f1 (patch)
tree02576077cba384aac928f4d78d19526d93f75d7b /sys/dev/ata
parent170b1962e3648be5d4b991579d61efbc60a24fd2 (diff)
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes. ok krw@ miod@
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata_wdc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/ata_wdc.c b/sys/dev/ata/ata_wdc.c
index fe05bc10e79..a4a247b8795 100644
--- a/sys/dev/ata/ata_wdc.c
+++ b/sys/dev/ata/ata_wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ata_wdc.c,v 1.32 2008/06/27 06:03:08 ray Exp $ */
+/* $OpenBSD: ata_wdc.c,v 1.33 2009/01/21 21:53:59 grange Exp $ */
/* $NetBSD: ata_wdc.c,v 1.21 1999/08/09 09:43:11 bouyer Exp $ */
/*
@@ -160,7 +160,7 @@ wdc_ata_bio_start(struct channel_softc *chp, struct wdc_xfer *xfer)
/* start timeout machinery */
if ((ata_bio->flags & ATA_POLL) == 0)
- timeout_add(&chp->ch_timo, ATA_DELAY / 1000 * hz);
+ timeout_add_msec(&chp->ch_timo, ATA_DELAY);
_wdc_ata_bio_start(chp, xfer);
}