Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ieee1394 Bugfix: re-order buffers when they are rele...
details: https://anonhg.NetBSD.org/src/rev/beb5293299aa
branches: trunk
changeset: 514643:beb5293299aa
user: haya <haya%NetBSD.org@localhost>
date: Fri Sep 07 11:04:35 2001 +0000
description:
Bugfix: re-order buffers when they are released.
diffstat:
sys/dev/ieee1394/fwohci.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 2e2f416bb2a5 -r beb5293299aa sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Fri Sep 07 10:35:59 2001 +0000
+++ b/sys/dev/ieee1394/fwohci.c Fri Sep 07 11:04:35 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwohci.c,v 1.41 2001/07/18 02:59:54 onoe Exp $ */
+/* $NetBSD: fwohci.c,v 1.42 2001/09/07 11:04:35 haya Exp $ */
#define DOUBLEBUF 1
#define NO_THREAD 1
@@ -1020,6 +1020,15 @@
struct fwohci_buf *fb;
struct fwohci_handler *fh;
+#if DOUBLEBUF
+ if (TAILQ_FIRST(&fc->fc_buf) > TAILQ_FIRST(&fc->fc_buf2)) {
+ struct fwohci_buf_s fctmp;
+
+ fctmp = fc->fc_buf;
+ fc->fc_buf = fc->fc_buf2;
+ fc->fc_buf2 = fctmp;
+ }
+#endif
while ((fh = LIST_FIRST(&fc->fc_handler)) != NULL)
fwohci_handler_set(sc, fh->fh_tcode, fh->fh_key1, fh->fh_key2,
NULL, NULL);
Home |
Main Index |
Thread Index |
Old Index