diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-15 02:37:52 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-02-15 02:37:52 +0000 |
commit | a66a53958fc5d5e5b6d0d16ec3357062875ee0bb (patch) | |
tree | 006fd2e989c9d9de54f73601f8fbf522ac15db94 /sys/dev/ic | |
parent | 758e8b9acf5dc5d2cd3e60b50cd5c9d52dcde1d3 (diff) |
Much simpler timeout calculation.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/isp_openbsd.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/ic/isp_openbsd.h b/sys/dev/ic/isp_openbsd.h index 7cafc074cbc..acfb931fd4f 100644 --- a/sys/dev/ic/isp_openbsd.h +++ b/sys/dev/ic/isp_openbsd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: isp_openbsd.h,v 1.18 2001/12/14 00:20:55 mjacob Exp $ */ +/* $OpenBSD: isp_openbsd.h,v 1.19 2002/02/15 02:37:51 art Exp $ */ /* * OpenBSD Specific definitions for the Qlogic ISP Host Adapter */ @@ -427,16 +427,8 @@ isp_wait_complete(struct ispsoftc *isp) int rv = 0; isp->isp_osinfo.mboxwaiting = 1; while (isp->isp_osinfo.mboxwaiting && rv == 0) { - static struct timeval fivesec = { 5, 0 }; - int timo; - struct timeval tv; - microtime(&tv); - timeradd(&tv, &fivesec, &tv); - if ((timo = hzto(&tv)) == 0) { - timo = 1; - } rv = tsleep(&isp->isp_osinfo.mboxwaiting, - PRIBIO, "isp_mboxcmd", timo); + PRIBIO, "isp_mboxcmd", 5 * hz); } if (rv == EWOULDBLOCK) { isp->isp_mboxbsy = 0; |