Print this page
XXXX introduce drv_sectohz
*** 3392,3402 ****
* running and if there are any transfers on the timeout
* list. This timer will be per pipe.
*/
if ((!pp->pp_timer_id) && (pp->pp_timeout_list)) {
pp->pp_timer_id = timeout(ehci_xfer_timeout_handler,
! (void *)(pp->pp_pipe_handle), drv_usectohz(1000000));
}
}
/*
* ehci_deallocate_tw:
--- 3392,3402 ----
* running and if there are any transfers on the timeout
* list. This timer will be per pipe.
*/
if ((!pp->pp_timer_id) && (pp->pp_timeout_list)) {
pp->pp_timer_id = timeout(ehci_xfer_timeout_handler,
! (void *)(pp->pp_pipe_handle), drv_sectohz(1));
}
}
/*
* ehci_deallocate_tw:
*** 3798,3808 ****
return;
}
(void) cv_reltimedwait(&pp->pp_xfer_cmpl_cv, &ehcip->ehci_int_mutex,
! drv_usectohz(EHCI_XFER_CMPL_TIMEWAIT * 1000000), TR_CLOCK_TICK);
if (pp->pp_count_done_qtds) {
USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
"ehci_wait_for_transfers_completion:"
--- 3798,3808 ----
return;
}
(void) cv_reltimedwait(&pp->pp_xfer_cmpl_cv, &ehcip->ehci_int_mutex,
! drv_sectohz(EHCI_XFER_CMPL_TIMEWAIT), TR_CLOCK_TICK);
if (pp->pp_count_done_qtds) {
USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
"ehci_wait_for_transfers_completion:"