summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic/aic79xx_openbsd.c
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2009-01-21 21:53:59 +0000
committergrange <grange@openbsd.org>2009-01-21 21:53:59 +0000
commit668304ad6be7e645e5dea8abfd51305a92cce8c4 (patch)
treef0bcfe36e5d834c40c4420eb36607991f813631c /sys/dev/ic/aic79xx_openbsd.c
parentmake declarations "C" to allow c++ code to compile (diff)
downloadwireguard-openbsd-668304ad6be7e645e5dea8abfd51305a92cce8c4.tar.xz
wireguard-openbsd-668304ad6be7e645e5dea8abfd51305a92cce8c4.zip
Replace timeout_add(msecs * hz / 1000) with timeout_add_msec(msecs).
No functional changes. ok krw@ miod@
Diffstat (limited to 'sys/dev/ic/aic79xx_openbsd.c')
-rw-r--r--sys/dev/ic/aic79xx_openbsd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aic79xx_openbsd.c b/sys/dev/ic/aic79xx_openbsd.c
index 1185218ad77..aa6a80a5db8 100644
--- a/sys/dev/ic/aic79xx_openbsd.c
+++ b/sys/dev/ic/aic79xx_openbsd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aic79xx_openbsd.c,v 1.30 2008/11/25 18:10:00 krw Exp $ */
+/* $OpenBSD: aic79xx_openbsd.c,v 1.31 2009/01/21 21:53:59 grange Exp $ */
/*
* Copyright (c) 2004 Milos Urbanek, Kenneth R. Westerback & Marco Peereboom
@@ -459,7 +459,7 @@ ahd_execute_scb(void *arg, bus_dma_segment_t *dm_segs, int nsegments)
LIST_INSERT_HEAD(&ahd->pending_scbs, scb, pending_links);
if (!(xs->flags & SCSI_POLL))
- timeout_add(&xs->stimeout, (xs->timeout * hz) / 1000);
+ timeout_add_msec(&xs->stimeout, xs->timeout);
scb->flags |= SCB_ACTIVE;