Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/dev/sdev_ncache.c
          +++ new/usr/src/uts/common/fs/dev/sdev_ncache.c
↓ open down ↓ 572 lines elided ↑ open up ↑
 573  573          int nsecs;
 574  574  
 575  575          mutex_enter(&ncl->ncl_mutex);
 576  576          ncl->ncl_flags |= NCL_LIST_WENABLE;
 577  577          mutex_exit(&ncl->ncl_mutex);
 578  578  
 579  579          nsecs = sdev_reconfig_delay;
 580  580          if (nsecs == 0) {
 581  581                  sdev_state_boot_complete();
 582  582          } else {
 583      -                nticks = drv_usectohz(1000000 * nsecs);
      583 +                nticks = drv_sectohz(nsecs);
 584  584                  sdcmn_err5(("timeout initiated %ld\n", nticks));
 585  585                  (void) timeout(sdev_state_timeout, NULL, nticks);
 586  586                  sdev_nc_flush_boot_update();
 587  587          }
 588  588  }
 589  589  
 590  590  /*
 591  591   * Called to inform the filesystem of progress during boot,
 592  592   * either a notice of reconfiguration boot or an indication of
 593  593   * system boot complete.  At system boot complete, set up a
↓ open down ↓ 320 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX