Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/intel/io/dktp/hba/ghd/ghd_timer.c
          +++ new/usr/src/uts/intel/io/dktp/hba/ghd/ghd_timer.c
↓ open down ↓ 733 lines elided ↑ open up ↑
 734  734  ghd_timer_init(tmr_t *tmrp, long ticks)
 735  735  {
 736  736          int     indx;
 737  737  
 738  738          mutex_init(&tglobal_mutex, NULL, MUTEX_DRIVER, NULL);
 739  739          mutex_init(&tmrp->t_mutex, NULL, MUTEX_DRIVER, NULL);
 740  740  
 741  741          /*
 742  742           * determine default timeout value
 743  743           */
 744      -        ghd_HZ = drv_usectohz(1000000);
      744 +        ghd_HZ = drv_sectohz(1);
 745  745          if (ticks == 0)
 746  746                  ticks = scsi_watchdog_tick * ghd_HZ;
 747  747          tmrp->t_ticks = ticks;
 748  748  
 749  749  
 750  750          /*
 751  751           * Initialize the table of abort timer values using an
 752  752           * indirect lookup table so that this code isn't dependant
 753  753           * on the cmdstate_t enum values or order.
 754  754           */
↓ open down ↓ 143 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX