diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2009-10-31 13:55:59 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2009-10-31 13:55:59 -0400 |
commit | 229e3be8d8a7a56c2c15cb71d4765b787848675d (patch) | |
tree | ad12d86a83bf562d7215529aa1ba2c41d08cae17 | |
parent | fcc116fa32719e1bbeb09391d729f144d34ef1f1 (diff) | |
download | seabios-229e3be8d8a7a56c2c15cb71d4765b787848675d.tar.gz |
Call yield() while waiting for USB control transfers to complete.
-rw-r--r-- | src/usb-ohci.c | 2 | ||||
-rw-r--r-- | src/usb-uhci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usb-ohci.c b/src/usb-ohci.c index 15841dc2..b62090f5 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 cc01234e..64531a92 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(); } } |