diff options
author | phk <phk@FreeBSD.org> | 2004-03-04 20:49:03 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-03-04 20:49:03 +0000 |
commit | ffadc40d66c850fb121d852fa35da7e80ed255e1 (patch) | |
tree | 05bd60a1b59f8a6cfc08c9141f79bab4ef2ea912 | |
parent | c73151565eda0b1769c0bde687d40fe3f6594e70 (diff) | |
download | FreeBSD-src-ffadc40d66c850fb121d852fa35da7e80ed255e1.zip FreeBSD-src-ffadc40d66c850fb121d852fa35da7e80ed255e1.tar.gz |
Implement a crude but functional usbd_ratecheck() to limit the number
of "usb0: %d scheduling overruns" messages I have to contend with.
-rw-r--r-- | sys/dev/usb/usbdi.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 989e4df..ece049d 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1117,11 +1117,9 @@ usbd_get_endpoint_descriptor(usbd_interface_handle iface, u_int8_t address) int usbd_ratecheck(struct timeval *last) { -#if 0 - static struct timeval errinterval = { 0, 250000 }; /* 0.25 s*/ - - return (ratecheck(last, &errinterval)); -#endif + if (last->tv_sec == time_second) + return (0); + last->tv_sec = time_second; return (1); } |