Source-Changes-HG archive

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

[src/netbsd-1-4]: src/sys/dev/ic Pull up revision 1.69:



details:   https://anonhg.NetBSD.org/src/rev/2478b82c72e8
branches:  netbsd-1-4
changeset: 469291:2478b82c72e8
user:      he <he%NetBSD.org@localhost>
date:      Sat Aug 28 21:54:29 1999 +0000

description:
Pull up revision 1.69:
  A mostly-stylistic change guarding tsleep() with a while() loop.  (bouyer)

diffstat:

 sys/dev/ic/wdc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r de1360fb0e2c -r 2478b82c72e8 sys/dev/ic/wdc.c
--- a/sys/dev/ic/wdc.c  Wed Aug 25 11:28:10 1999 +0000
+++ b/sys/dev/ic/wdc.c  Sat Aug 28 21:54:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdc.c,v 1.66.2.3 1999/08/25 11:18:38 he Exp $ */
+/*     $NetBSD: wdc.c,v 1.66.2.4 1999/08/28 21:54:29 he Exp $ */
 
 
 /*
@@ -1047,7 +1047,9 @@
                ret = WDC_COMPLETE;
        } else {
                if (wdc_c->flags & AT_WAIT) {
-                       tsleep(wdc_c, PRIBIO, "wdccmd", 0);
+                       while ((wdc_c->flags & AT_DONE) == 0) {
+                               tsleep(wdc_c, PRIBIO, "wdccmd", 0);
+                       }
                        ret = WDC_COMPLETE;
                } else {
                        ret = WDC_QUEUED;



Home | Main Index | Thread Index | Old Index