From ebcf515942389f0e738f6323c8b553ceabee63f1 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Wed, 21 Jan 2009 21:54:01 +0000 Subject: Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs). No functional changes. ok krw@ miod@ --- sys/dev/ic/wdc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/wdc.c') diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 416d121bbbf..268b912a7aa 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.100 2008/07/02 03:00:55 fgsch Exp $ */ +/* $OpenBSD: wdc.c,v 1.101 2009/01/21 21:54:00 grange Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -1781,7 +1781,7 @@ __wdccommand_start(chp, xfer) if ((wdc_c->flags & AT_POLL) == 0) { chp->ch_flags |= WDCF_IRQ_WAIT; /* wait for interrupt */ - timeout_add(&chp->ch_timo, wdc_c->timeout / 1000 * hz); + timeout_add_msec(&chp->ch_timo, wdc_c->timeout); return; } -- cgit v1.2.3