From: Kevin O'Connor Date: Sat, 31 Oct 2009 17:55:59 +0000 (-0400) Subject: Call yield() while waiting for USB control transfers to complete. X-Git-Tag: rel-0.5.0~46 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=229e3be8d8a7a56c2c15cb71d4765b787848675d;p=seabios.git Call yield() while waiting for USB control transfers to complete. --- diff --git a/src/usb-ohci.c b/src/usb-ohci.c index 15841dc..b62090f 100644 --- a/src/usb-ohci.c +++ b/src/usb-ohci.c @@ -185,7 +185,7 @@ wait_ed(struct ohci_ed *ed) dprintf(1, "Timeout on wait_ed %p\n", ed); return -1; } - cpu_relax(); + yield(); } } diff --git a/src/usb-uhci.c b/src/usb-uhci.c index cc01234..64531a9 100644 --- a/src/usb-uhci.c +++ b/src/usb-uhci.c @@ -166,7 +166,7 @@ wait_qh(struct usb_s *cntl, struct uhci_qh *qh) , inw(cntl->uhci.iobase + USBSTS)); return -1; } - cpu_relax(); + yield(); } }