Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/sun4v/io/vsw_switching.c
          +++ new/usr/src/uts/sun4v/io/vsw_switching.c
↓ open down ↓ 171 lines elided ↑ open up ↑
 172  172  vsw_setup_switching_thread(void *arg)
 173  173  {
 174  174          callb_cpr_t     cprinfo;
 175  175          vsw_t           *vswp =  (vsw_t *)arg;
 176  176          clock_t         wait_time;
 177  177          clock_t         xwait;
 178  178          clock_t         wait_rv;
 179  179          int             rv;
 180  180  
 181  181          /* wait time used on successive retries */
 182      -        xwait = drv_usectohz(vsw_setup_switching_delay * MICROSEC);
      182 +        xwait = drv_sectohz(vsw_setup_switching_delay);
 183  183  
 184  184          CALLB_CPR_INIT(&cprinfo, &vswp->sw_thr_lock, callb_generic_cpr,
 185  185              "vsw_setup_sw_thread");
 186  186  
 187  187          mutex_enter(&vswp->sw_thr_lock);
 188  188  
 189  189          while ((vswp->sw_thr_flags & VSW_SWTHR_STOP) == 0) {
 190  190  
 191  191                  CALLB_CPR_SAFE_BEGIN(&cprinfo);
 192  192  
↓ open down ↓ 1752 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX