aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2009-10-31 13:55:59 -0400
committerKevin O'Connor <kevin@koconnor.net>2009-10-31 13:55:59 -0400
commit229e3be8d8a7a56c2c15cb71d4765b787848675d (patch)
treead12d86a83bf562d7215529aa1ba2c41d08cae17
parentfcc116fa32719e1bbeb09391d729f144d34ef1f1 (diff)
downloadseabios-229e3be8d8a7a56c2c15cb71d4765b787848675d.tar.gz
Call yield() while waiting for USB control transfers to complete.
-rw-r--r--src/usb-ohci.c2
-rw-r--r--src/usb-uhci.c2
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();
}
}