Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/devcache.c
          +++ new/usr/src/uts/common/os/devcache.c
↓ open down ↓ 168 lines elided ↑ open up ↑
 169  169   *      every update resets the timer so no repository write will
 170  170   *      occur while data is being updated continuously.
 171  171   *
 172  172   * nvpdaemon_idle_time (default 60)
 173  173   *      The number of seconds the daemon will sleep idle before exiting.
 174  174   *
 175  175   */
 176  176  #define NVPFLUSH_DELAY          10
 177  177  #define NVPDAEMON_IDLE_TIME     60
 178  178  
 179      -#define TICKS_PER_SECOND        (drv_usectohz(1000000))
      179 +#define TICKS_PER_SECOND        drv_sectohz(1)
 180  180  
 181  181  /*
 182  182   * Tunables
 183  183   */
 184  184  int kfio_report_error = 0;              /* kernel file i/o operations */
 185  185  int kfio_disable_read = 0;              /* disable all reads */
 186  186  int kfio_disable_write = 0;             /* disable all writes */
 187  187  
 188  188  int nvpflush_delay      = NVPFLUSH_DELAY;
 189  189  int nvpdaemon_idle_time = NVPDAEMON_IDLE_TIME;
↓ open down ↓ 966 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX