Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/ddi_intr_irm.c
          +++ new/usr/src/uts/common/os/ddi_intr_irm.c
↓ open down ↓ 845 lines elided ↑ open up ↑
 846  846          pool_p->ipool_flags |= DDI_IRM_FLAG_ACTIVE;
 847  847  
 848  848          /*
 849  849           * Main loop.
 850  850           * Iterate once first before wait on signal, in case there is signal
 851  851           * sent before this thread being created
 852  852           */
 853  853          for (;;) {
 854  854  
 855  855                  /* Compute the delay interval */
 856      -                interval = drv_usectohz(irm_balance_delay * 1000000);
      856 +                interval = drv_sectohz(irm_balance_delay);
 857  857  
 858  858                  /* Wait one interval, or until there are waiters */
 859  859                  if ((interval > 0) &&
 860  860                      !(pool_p->ipool_flags & DDI_IRM_FLAG_WAITERS) &&
 861  861                      !(pool_p->ipool_flags & DDI_IRM_FLAG_EXIT)) {
 862  862                          (void) cv_reltimedwait(&pool_p->ipool_cv,
 863  863                              &pool_p->ipool_lock, interval, TR_CLOCK_TICK);
 864  864                  }
 865  865  
 866  866                  /* Check if awakened to exit */
↓ open down ↓ 504 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX