Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/pppt/pppt_tgt.c
          +++ new/usr/src/uts/common/io/comstar/port/pppt/pppt_tgt.c
↓ open down ↓ 797 lines elided ↑ open up ↑
 798  798          /*
 799  799           * Rather than guaranteeing the target state machine code will not
 800  800           * block for long periods of time (tying up this callout thread)
 801  801           * we will queue a task on the taskq to send the retry event.
 802  802           * If it fails we'll setup another timeout and try again later.
 803  803           */
 804  804          if (taskq_dispatch(pppt_global.global_dispatch_taskq,
 805  805              pppt_tgt_dereg_task, tgt, KM_NOSLEEP) == NULL) {
 806  806                  /* Dispatch failed, try again later */
 807  807                  (void) timeout(pppt_tgt_dereg_retry, tgt,
 808      -                    drv_usectohz(TGT_DEREG_RETRY_SECONDS * 1000000));
      808 +                    drv_sectohz(TGT_DEREG_RETRY_SECONDS));
 809  809          }
 810  810  }
 811  811  
 812  812  static void
 813  813  pppt_tgt_dereg_task(void *arg)
 814  814  {
 815  815          pppt_tgt_t *tgt = arg;
 816  816  
 817  817          pppt_tgt_sm_event(tgt, TE_STMF_DEREG_RETRY);
 818  818  }
↓ open down ↓ 83 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX