Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/cpqary3/cpqary3_talk2ctlr.c
          +++ new/usr/src/uts/common/io/cpqary3/cpqary3_talk2ctlr.c
↓ open down ↓ 918 lines elided ↑ open up ↑
 919  919                  return (CPQARY3_FAILURE);
 920  920          }
 921  921  
 922  922          for (i = 0; i < 300; i++) {     /* loop for 300 seconds */
 923  923                  if (CISS_CTLR_INIT == ddi_get32(ctlr_init_handle, ctlr_init)) {
 924  924                          DTRACE_PROBE(ctlr_init_check_ready);
 925  925                          ddi_regs_map_free(&ctlr_init_handle);
 926  926                          break;
 927  927                  } else {
 928  928                          DTRACE_PROBE(ctlr_init_check_notready);
 929      -                        delay(drv_usectohz(1000000));
      929 +                        delay(drv_sectohz(1));
 930  930                  }
 931  931          }
 932  932  
 933  933          if (i >= 300) { /* HBA not initialized even after 300 seconds !!! */
 934  934                  ddi_regs_map_free(&ctlr_init_handle);
 935  935                  cmn_err(CE_WARN, "CPQary3 : %s NOT initialized !!! HBA may not "
 936  936                      "function properly. Please replace the hardware or check "
 937  937                      "the connections", cpqary3p->hba_name);
 938  938                  return (CPQARY3_FAILURE);
 939  939          }
 940  940  
 941  941          return (CPQARY3_SUCCESS);
 942  942  }
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX