Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic DPT_MORE_TIMEOUT was scaled wrong.



details:   https://anonhg.NetBSD.org/src/rev/aff938a98d39
branches:  trunk
changeset: 477535:aff938a98d39
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Oct 20 11:54:10 1999 +0000

description:
DPT_MORE_TIMEOUT was scaled wrong.

diffstat:

 sys/dev/ic/dpt.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r ee84c4b120a9 -r aff938a98d39 sys/dev/ic/dpt.c
--- a/sys/dev/ic/dpt.c  Wed Oct 20 06:40:26 1999 +0000
+++ b/sys/dev/ic/dpt.c  Wed Oct 20 11:54:10 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dpt.c,v 1.9 1999/10/19 20:16:48 ad Exp $       */
+/*     $NetBSD: dpt.c,v 1.10 1999/10/20 11:54:10 ad Exp $      */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.9 1999/10/19 20:16:48 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.10 1999/10/20 11:54:10 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -170,7 +170,7 @@
 #endif
        
        /* Don't get stalled by HA_ST_MORE */
-       if (moretimo < DPT_MORE_TIMEOUT / 10)
+       if (moretimo < DPT_MORE_TIMEOUT / 100)
                moretimo = 0;
        
        for (;;) {
@@ -182,7 +182,7 @@
                 * around. 
                 */ 
                if ((dpt_inb(sc, HA_AUX_STATUS) & HA_AUX_INTR) == 0) {
-                       if (more != 0 && moretimo++ < DPT_MORE_TIMEOUT / 10) {
+                       if (more != 0 && moretimo++ < DPT_MORE_TIMEOUT / 100) {
                                DELAY(10);
                                continue;
                        }
@@ -242,7 +242,7 @@
                }
                
                /* Don't get stalled by HA_ST_MORE */
-               if (moretimo < DPT_MORE_TIMEOUT / 10)
+               if (moretimo < DPT_MORE_TIMEOUT / 100)
                        moretimo = 0;
        }
 



Home | Main Index | Thread Index | Old Index