Print this page
4782 usba shouldn't abuse ddi_get_time(9f)
Reviewed by: Robert Mustacchi <rm@joyent.com>

@@ -20,10 +20,13 @@
  */
 /*
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
+/*
+ * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
+ */
 
 #ifndef _SYS_USB_HUBDVAR_H
 #define _SYS_USB_HUBDVAR_H
 
 

@@ -89,13 +92,13 @@
         /* wakeup and power transition capabilities of an interface */
         uint8_t         hubp_pm_capabilities;
 
         uint8_t         hubp_current_power;     /* current power level */
 
-        time_t          hubp_time_at_full_power;        /* timestamp 0->3 */
+        hrtime_t        hubp_time_at_full_power;        /* timestamp 0->3 */
 
-        uint8_t         hubp_min_pm_threshold;          /* in seconds */
+        hrtime_t        hubp_min_pm_threshold;          /* in nanoseconds */
 
         /* power state of all children are tracked here */
         uint8_t         *hubp_child_pwrstate;
 
         /* pm-components properties are stored here */