Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun/io/scsi/adapters/sf.c
          +++ new/usr/src/uts/sun/io/scsi/adapters/sf.c
↓ open down ↓ 778 lines elided ↑ open up ↑
 779  779                          /* if we found a matching entry keep track of it */
 780  780                          sf->sf_sibling = tsf;
 781  781                  }
 782  782  
 783  783                  /*
 784  784                   * increment watchdog init flag, setting watchdog timeout
 785  785                   * if we are the first (since somebody has to do it)
 786  786                   */
 787  787                  if (!sf_watchdog_init++) {
 788  788                          mutex_exit(&sf_global_mutex);
 789      -                        sf_watchdog_tick = sf_watchdog_timeout *
 790      -                            drv_usectohz(1000000);
      789 +                        sf_watchdog_tick = drv_sectohz(sf_watchdog_timeout);
 791  790                          sf_watchdog_id = timeout(sf_watch,
 792  791                              NULL, sf_watchdog_tick);
 793  792                  } else {
 794  793                          mutex_exit(&sf_global_mutex);
 795  794                  }
 796  795  
 797  796                  if (tsf != NULL) {
 798  797                          /*
 799  798                           * set up matching entry to be our sibling
 800  799                           */
↓ open down ↓ 6438 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX