usbxhci: xhcirecover proc does not need to check status every 10ms

The timing loop is here for the case if the
controller doesnt produce an interrupt when
becoming broken. In normal case, we should
just get worken up from the interrupt.

In any case, 100 times a second polling is
not neccessary here, increase to 1 second.
This commit is contained in:
cinap_lenrek 2021-10-13 16:57:38 +00:00
parent 03d870e028
commit 3fe3e370e3

View file

@ -616,7 +616,7 @@ recover(void *arg)
while(waserror())
;
while(!needrecover(ctlr))
tsleep(&ctlr->recover, needrecover, ctlr, 10);
tsleep(&ctlr->recover, needrecover, ctlr, 1000);
shutdown(hp);
/*