Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
          +++ new/usr/src/uts/common/io/usb/hcd/ehci/ehci_xfer.c
↓ open down ↓ 3386 lines elided ↑ open up ↑
3387 3387  
3388 3388          ASSERT(mutex_owned(&ehcip->ehci_int_mutex));
3389 3389  
3390 3390          /*
3391 3391           * Start the pipe's timer only if currently timer is not
3392 3392           * running and if there are any transfers on the timeout
3393 3393           * list. This timer will be per pipe.
3394 3394           */
3395 3395          if ((!pp->pp_timer_id) && (pp->pp_timeout_list)) {
3396 3396                  pp->pp_timer_id = timeout(ehci_xfer_timeout_handler,
3397      -                    (void *)(pp->pp_pipe_handle), drv_usectohz(1000000));
     3397 +                    (void *)(pp->pp_pipe_handle), drv_sectohz(1));
3398 3398          }
3399 3399  }
3400 3400  
3401 3401  /*
3402 3402   * ehci_deallocate_tw:
3403 3403   *
3404 3404   * Deallocate of a Transaction Wrapper (TW) and this involves the freeing of
3405 3405   * of DMA resources.
3406 3406   */
3407 3407  void
↓ open down ↓ 385 lines elided ↑ open up ↑
3793 3793          USB_DPRINTF_L3(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
3794 3794              "ehci_wait_for_transfers_completion: count_done_qtds = 0x%x",
3795 3795              pp->pp_count_done_qtds);
3796 3796  
3797 3797          if (!pp->pp_count_done_qtds) {
3798 3798  
3799 3799                  return;
3800 3800          }
3801 3801  
3802 3802          (void) cv_reltimedwait(&pp->pp_xfer_cmpl_cv, &ehcip->ehci_int_mutex,
3803      -            drv_usectohz(EHCI_XFER_CMPL_TIMEWAIT * 1000000), TR_CLOCK_TICK);
     3803 +            drv_sectohz(EHCI_XFER_CMPL_TIMEWAIT), TR_CLOCK_TICK);
3804 3804  
3805 3805          if (pp->pp_count_done_qtds) {
3806 3806  
3807 3807                  USB_DPRINTF_L2(PRINT_MASK_LISTS, ehcip->ehci_log_hdl,
3808 3808                      "ehci_wait_for_transfers_completion:"
3809 3809                      "No transfers completion confirmation received");
3810 3810          }
3811 3811  }
3812 3812  
3813 3813  /*
↓ open down ↓ 352 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX