summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2015-03-12 19:56:51 +0000
committerchristos <christos@NetBSD.org>2015-03-12 19:56:51 +0000
commitb6eb14604e33b769caa6427b18c41cb660e65fa5 (patch)
tree94e0fbdbae4a30abc10f762e15141c06741b2d55 /sys/dev/ic
parent216d9100e9cd1e82f6d758e9ce6d9c864a5b6309 (diff)
use hardclock_ticks; pointed out by hannken.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ciss.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index 43c24e2a0b9..1a5b4122923 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ciss.c,v 1.34 2015/03/12 18:53:22 christos Exp $ */
+/* $NetBSD: ciss.c,v 1.35 2015/03/12 19:56:51 christos Exp $ */
/* $OpenBSD: ciss.c,v 1.68 2013/05/30 16:15:02 deraadt Exp $ */
/*
@@ -19,7 +19,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.34 2015/03/12 18:53:22 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ciss.c,v 1.35 2015/03/12 19:56:51 christos Exp $");
#include "bio.h"
@@ -505,7 +505,7 @@ ciss_wait(struct ciss_softc *sc, struct ciss_ccb *ccb, int ms)
tohz = mstohz(ms);
if (tohz == 0)
tohz = 1;
- etick = tick + tohz;
+ etick = hardclock_ticks + tohz;
for (;;) {
ccb->ccb_state = CISS_CCB_POLL;
@@ -521,7 +521,7 @@ ciss_wait(struct ciss_softc *sc, struct ciss_ccb *ccb, int ms)
ciss_done(ccb);
return 0;
}
- tohz = etick - tick;
+ tohz = etick - hardclock_ticks;
if (tohz <= 0)
return EWOULDBLOCK;
CISS_DPRINTF(CISS_D_CMD, ("T"));