Implement a crude but functional usbd_ratecheck() to limit the number

of "usb0: %d scheduling overruns" messages I have to contend with.
This commit is contained in:
Poul-Henning Kamp 2004-03-04 20:49:03 +00:00
parent 44fc52d2ac
commit 7896170112
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126617

View File

@ -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);
}