Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/comstar/port/fct/fct.c
          +++ new/usr/src/uts/common/io/comstar/port/fct/fct.c
↓ open down ↓ 3362 lines elided ↑ open up ↑
3363 3363                          } else {
3364 3364                                  ASSERT(0);
3365 3365                          }
3366 3366                  } else {
3367 3367                          clock_t timeout_ticks;
3368 3368                          if (port->port_fca_abort_timeout)
3369 3369                                  timeout_ticks = drv_usectohz(
3370 3370                                      port->port_fca_abort_timeout*1000);
3371 3371                          else
3372 3372                                  /* 10 seconds by default */
3373      -                                timeout_ticks = drv_usectohz(10 * 1000000);
     3373 +                                timeout_ticks = drv_sectohz(10);
3374 3374                          if ((ddi_get_lbolt() >
3375 3375                              (icmd->icmd_start_time+timeout_ticks)) &&
3376 3376                              iport->iport_state == FCT_STATE_ONLINE) {
3377 3377                                  /* timeout, reset the port */
3378 3378                                  char cmd_type[10];
3379 3379                                  if (cmd->cmd_type == FCT_CMD_RCVD_ELS ||
3380 3380                                      cmd->cmd_type == FCT_CMD_SOL_ELS) {
3381 3381                                          fct_els_t *els = cmd->cmd_specific;
3382 3382                                          (void) snprintf(cmd_type,
3383 3383                                              sizeof (cmd_type), "%x.%x",
↓ open down ↓ 244 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX