From 89eb6241e51bc825cfbc1292802a960dcb48d778 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 22 Oct 2009 22:30:37 -0400 Subject: Handle tsc rollover. Handle case where timetamp counter overflows while waiting. --- src/usb-uhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usb-uhci.c') diff --git a/src/usb-uhci.c b/src/usb-uhci.c index 5829069c..14a53007 100644 --- a/src/usb-uhci.c +++ b/src/usb-uhci.c @@ -160,7 +160,7 @@ wait_qh(struct uhci_qh *qh) for (;;) { if (qh->element & UHCI_PTR_TERM) return 0; - if (rdtscll() > end) { + if (check_time(end)) { dprintf(1, "Timeout on wait_qh %p\n", qh); return -1; } -- cgit