Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Previous would have misbehaved if polled commands...



details:   https://anonhg.NetBSD.org/src/rev/49a9a41c17ea
branches:  trunk
changeset: 495558:49a9a41c17ea
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Jul 31 13:16:34 2000 +0000

description:
Previous would have misbehaved if polled commands overlapped.

diffstat:

 sys/dev/ic/cac.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r ba61f3af3709 -r 49a9a41c17ea sys/dev/ic/cac.c
--- a/sys/dev/ic/cac.c  Mon Jul 31 13:16:24 2000 +0000
+++ b/sys/dev/ic/cac.c  Mon Jul 31 13:16:34 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cac.c,v 1.8 2000/07/24 12:28:31 ad Exp $       */
+/*     $NetBSD: cac.c,v 1.9 2000/07/31 13:16:34 ad Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.8 2000/07/24 12:28:31 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.9 2000/07/31 13:16:34 ad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -354,9 +354,10 @@
        int off;
        
        ccb_done = NULL;
+       timo *= 10;
 
        for (;;) {
-               for (timo *= 10, completed = 0; timo != 0; timo--) {
+               for (completed = 0; timo != 0; timo--) {
                        if ((completed = sc->sc_cl->cl_completed(sc)) != 0)
                                break;
                        DELAY(100);



Home | Main Index | Thread Index | Old Index