Print this page
4786 emlxs shouldn't abuse ddi_get_time(9f)

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
          +++ new/usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_solaris.c
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2010 Emulex.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   * Copyright (c) 2011 Bayard G. Bell. All rights reserved.
       26 + * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
  26   27   */
  27   28  
  28   29  
  29   30  #define DEF_ICFG        1
  30   31  
  31   32  #include <emlxs.h>
  32   33  #include <emlxs_version.h>
  33   34  
  34   35  
  35   36  char emlxs_revision[] = EMLXS_REVISION;
↓ open down ↓ 1054 lines elided ↑ open up ↑
1090 1091          bzero(&emlxs_device, sizeof (emlxs_device));
1091 1092  
1092 1093  #ifdef MODSYM_SUPPORT
1093 1094          bzero(&emlxs_modsym, sizeof (emlxs_modsym_t));
1094 1095  #endif /* MODSYM_SUPPORT */
1095 1096  
1096 1097          (void) sprintf(buf, "%s_device mutex", DRIVER_NAME);
1097 1098          mutex_init(&emlxs_device.lock, buf, MUTEX_DRIVER, NULL);
1098 1099  
1099 1100          (void) drv_getparm(LBOLT, &emlxs_device.log_timestamp);
1100      -        emlxs_device.drv_timestamp = ddi_get_time();
     1101 +        emlxs_device.drv_timestamp = gethrtime();
1101 1102  
1102 1103          for (ret = 0; ret < MAX_FC_BRDS; ret++) {
1103 1104                  emlxs_instance[ret] = (uint32_t)-1;
1104 1105          }
1105 1106  
1106 1107          /*
1107 1108           * Provide for one ddiinst of the emlxs_dev_ctl structure
1108 1109           * for each possible board in the system.
1109 1110           */
1110 1111          if ((ret = ddi_soft_state_init(&emlxs_soft_state,
↓ open down ↓ 10434 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX