From 3fe3e370e3bcad21b61aec6cbf5d11a9398e805b Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 13 Oct 2021 16:57:38 +0000 Subject: [PATCH] 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. --- sys/src/9/port/usbxhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/port/usbxhci.c b/sys/src/9/port/usbxhci.c index 5af746dfa..df0742975 100644 --- a/sys/src/9/port/usbxhci.c +++ b/sys/src/9/port/usbxhci.c @@ -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); /*