Changes in uspace/drv/bus/usb/xhci/hc.c [205f1add:5f97ef44] in mainline
- File:
-
- 1 edited
-
uspace/drv/bus/usb/xhci/hc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/usb/xhci/hc.c
r205f1add r5f97ef44 229 229 hc->max_slots = XHCI_REG_RD(hc->cap_regs, XHCI_CAP_MAX_SLOTS); 230 230 231 struct time spec ts;232 getuptime(&t s);233 hc->wrap_time = SEC2USEC(ts.tv_sec) + NSEC2USEC(ts.tv_nsec);231 struct timeval tv; 232 getuptime(&tv); 233 hc->wrap_time = tv.tv_sec * 1000000 + tv.tv_usec; 234 234 hc->wrap_count = 0; 235 235 … … 591 591 static errno_t xhci_handle_mfindex_wrap_event(xhci_hc_t *hc, xhci_trb_t *trb) 592 592 { 593 struct time spec ts;594 getuptime(&t s);595 usb_log_debug("Microframe index wrapped (@%l ld.%lld, %" PRIu64 " total).",596 t s.tv_sec, NSEC2USEC(ts.tv_nsec), hc->wrap_count);597 hc->wrap_time = SEC2USEC(ts.tv_sec) + NSEC2USEC(ts.tv_nsec);593 struct timeval tv; 594 getuptime(&tv); 595 usb_log_debug("Microframe index wrapped (@%lu.%li, %" PRIu64 " total).", 596 tv.tv_sec, tv.tv_usec, hc->wrap_count); 597 hc->wrap_time = ((uint64_t) tv.tv_sec) * 1000000 + ((uint64_t) tv.tv_usec); 598 598 ++hc->wrap_count; 599 599 return EOK;
Note:
See TracChangeset
for help on using the changeset viewer.
