Call yield() while waiting for USB control transfers to complete.
[seabios.git] / src / usb-uhci.c
index cc01234ec50382f4333633836dc7a34f38781d91..64531a920c806e8275a486517d41ced24f62fcfe 100644 (file)
@@ -166,7 +166,7 @@ wait_qh(struct usb_s *cntl, struct uhci_qh *qh)
                     , inw(cntl->uhci.iobase + USBSTS));
             return -1;
         }
-        cpu_relax();
+        yield();
     }
 }