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

@@ -21,10 +21,13 @@
 
 /*
  * Copyright 2010 Emulex.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
+ */
 
 #ifndef _EMLXS_FC_H
 #define _EMLXS_FC_H
 
 #ifdef  __cplusplus

@@ -2038,11 +2041,11 @@
 
 /* Power Management Component */
 #define EMLXS_PM_ADAPTER        0
 
 
-#define DRV_TIME        (uint32_t)(ddi_get_time() - emlxs_device.drv_timestamp)
+#define DRV_TIME        (uint32_t)((gethrtime() - emlxs_device.drv_timestamp) / NANOSEC)
 
 #define HBA                     port->hba
 #define PPORT                   hba->port[0]
 #define VPORT(x)                hba->port[x]
 #define EMLXS_TIMER_LOCK        hba->timer_lock