Print this page
8115 parallel zfs mount

@@ -9,10 +9,11 @@
  * http://www.illumos.org/license/CDDL.
  */
 
 /*
  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
+ * Copyright 2017 RackTop Systems.
  */
 
 /*
  * condvar(9f)
  */

@@ -116,10 +117,23 @@
 
         delta = abstime - ddi_get_lbolt();
         return (cv__twait(cv, mp, delta, 1));
 }
 
+/*ARGSUSED*/
+clock_t
+cv_timedwait_hires(kcondvar_t *cv, kmutex_t *mp, hrtime_t tim, hrtime_t res,
+        int flag)
+{
+        clock_t delta;
+
+        delta = tim;
+        if (flag & CALLOUT_FLAG_ABSOLUTE)
+                delta -= gethrtime();
+        return (cv__twait(cv, mp, delta, 0));
+}
+
 clock_t
 cv_reltimedwait(kcondvar_t *cv, kmutex_t *mp, clock_t delta, time_res_t res)
 {
         _NOTE(ARGUNUSED(res))