Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic use hardclock_ticks; pointed out by hannken.



details:   https://anonhg.NetBSD.org/src/rev/aa98ace47caa
branches:  trunk
changeset: 336714:aa98ace47caa
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 12 19:56:51 2015 +0000

description:
use hardclock_ticks; pointed out by hannken.

diffstat:

 sys/dev/ic/ciss.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r ca8305ad378e -r aa98ace47caa sys/dev/ic/ciss.c
--- a/sys/dev/ic/ciss.c Thu Mar 12 18:53:22 2015 +0000
+++ b/sys/dev/ic/ciss.c Thu Mar 12 19:56:51 2015 +0000
@@ -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 @@
        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_done(ccb);
                        return 0;
                }
-               tohz = etick - tick;
+               tohz = etick - hardclock_ticks;
                if (tohz <= 0)
                        return EWOULDBLOCK;
                CISS_DPRINTF(CISS_D_CMD, ("T"));



Home | Main Index | Thread Index | Old Index