Print this page
XXXX introduce drv_sectohz

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
          +++ new/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_fcp.c
↓ open down ↓ 1975 lines elided ↑ open up ↑
1976 1976          /* Check if adapter was shutdown */
1977 1977          if (hba->flag & FC_HARDWARE_ERROR) {
1978 1978                  /*
1979 1979                   * Force mailbox cleanup
1980 1980                   * This will wake any sleeping or polling threads
1981 1981                   */
1982 1982                  emlxs_mb_fini(hba, NULL, MBX_HARDWARE_ERROR);
1983 1983          }
1984 1984  
1985 1985          /* Pause here for the IO to settle */
1986      -        delay(drv_usectohz(1000000));   /* 1 sec */
     1986 +        delay(drv_sectohz(1));
1987 1987  
1988 1988          /* Unregister all nodes */
1989 1989          emlxs_ffcleanup(hba);
1990 1990  
1991 1991          if (hba->bus_type == SBUS_FC) {
1992 1992                  WRITE_SBUS_CSR_REG(hba, FC_SHS_REG(hba), 0x9A);
1993 1993  #ifdef FMA_SUPPORT
1994 1994                  /* Access handle validation */
1995 1995                  EMLXS_CHK_ACC_HANDLE(hba, hba->sli.sli3.sbus_csr_handle);
1996 1996  #endif  /* FMA_SUPPORT */
↓ open down ↓ 2445 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX