Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Poll the interrupt pipe every 100 ms instead of ...
details: https://anonhg.NetBSD.org/src/rev/9df64367be52
branches: trunk
changeset: 480738:9df64367be52
user: augustss <augustss%NetBSD.org@localhost>
date: Wed Jan 19 00:25:23 2000 +0000
description:
Poll the interrupt pipe every 100 ms instead of every 1 ms. The interrupt
pipe is only used to collect statistics so it seems rather stupid to bog
down the processor by doing this every ms.
diffstat:
sys/dev/usb/if_aue.c | 9 +++++++--
sys/dev/usb/if_auereg.h | 3 ++-
2 files changed, 9 insertions(+), 3 deletions(-)
diffs (44 lines):
diff -r e37068c4f885 -r 9df64367be52 sys/dev/usb/if_aue.c
--- a/sys/dev/usb/if_aue.c Wed Jan 19 00:23:58 2000 +0000
+++ b/sys/dev/usb/if_aue.c Wed Jan 19 00:25:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.13 2000/01/18 19:46:55 augustss Exp $ */
+/* $NetBSD: if_aue.c,v 1.14 2000/01/19 00:25:23 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -156,6 +156,10 @@
#define DPRINTFN(n,x)
#endif
+int aue_cutoff = AUE_CUTOFF;
+#undef AUE_CUTOFF
+#define AUE_CUTOFF aue_cutoff
+
/*
* Various supported device vendors/products.
*/
@@ -1521,7 +1525,8 @@
}
err = usbd_open_pipe_intr(sc->aue_iface, sc->aue_ed[AUE_ENDPT_INTR],
USBD_EXCLUSIVE_USE, &sc->aue_ep[AUE_ENDPT_INTR], sc,
- &sc->aue_cdata.aue_ibuf, AUE_INTR_PKTLEN, aue_intr);
+ &sc->aue_cdata.aue_ibuf, AUE_INTR_PKTLEN, aue_intr,
+ AUE_INTR_INTERVAL);
if (err) {
printf("%s: open intr pipe failed: %s\n",
USBDEVNAME(sc->aue_dev), usbd_errstr(err));
diff -r e37068c4f885 -r 9df64367be52 sys/dev/usb/if_auereg.h
--- a/sys/dev/usb/if_auereg.h Wed Jan 19 00:23:58 2000 +0000
+++ b/sys/dev/usb/if_auereg.h Wed Jan 19 00:25:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_auereg.h,v 1.1 2000/01/16 13:45:57 augustss Exp $ */
+/* $NetBSD: if_auereg.h,v 1.2 2000/01/19 00:25:23 augustss Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
* Bill Paul <wpaul%ee.columbia.edu@localhost>. All rights reserved.
@@ -263,3 +263,4 @@
//#define AUE_CUTOFF 1536
#define AUE_MIN_FRAMELEN 60
#define AUE_TX_TIMEOUT 10000 /* ms */
+#define AUE_INTR_INTERVAL 100 /* ms */
Home |
Main Index |
Thread Index |
Old Index