Print this page
XXXX introduce drv_sectohz

@@ -3392,11 +3392,11 @@
          * 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));
+                    (void *)(pp->pp_pipe_handle), drv_sectohz(1));
         }
 }
 
 /*
  * ehci_deallocate_tw:

@@ -3798,11 +3798,11 @@
 
                 return;
         }
 
         (void) cv_reltimedwait(&pp->pp_xfer_cmpl_cv, &ehcip->ehci_int_mutex,
-            drv_usectohz(EHCI_XFER_CMPL_TIMEWAIT * 1000000), TR_CLOCK_TICK);
+            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:"