Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/scsi/impl/scsi_watch.c
          +++ new/usr/src/uts/common/io/scsi/impl/scsi_watch.c
↓ open down ↓ 648 lines elided ↑ open up ↑
 649  649   * really doesn't matter much
 650  650   * it is more important that we fire off all TURs simulataneously so
 651  651   * we don't have to wake up frequently
 652  652   */
 653  653  static void
 654  654  scsi_watch_thread()
 655  655  {
 656  656          struct scsi_watch_request       *swr, *next;
 657  657          clock_t                         last_delay = 0;
 658  658          clock_t                         next_delay = 0;
 659      -        clock_t                         onesec = drv_usectohz(1000000);
      659 +        clock_t                         onesec = drv_sectohz(1);
 660  660          clock_t                         exit_delay = 60 * onesec;
 661  661  
 662  662          SW_DEBUG((dev_info_t *)NULL, sw_label, SCSI_DEBUG,
 663  663              "scsi_watch_thread: Entering ...\n");
 664  664  
 665  665  #if !defined(lint)
 666  666          _NOTE(NO_COMPETING_THREADS_NOW);
 667  667  #endif
 668  668          mutex_init(&cpr_mutex, NULL, MUTEX_DRIVER, NULL);
 669  669          CALLB_CPR_INIT(&cpr_info,
↓ open down ↓ 372 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX