summaryrefslogtreecommitdiff
path: root/usr/src/lib/libfakekernel/common/cond.c
diff options
context:
space:
mode:
authorOlaf Faaland <faaland1@llnl.gov>2019-03-28 20:30:57 +0000
committerDan McDonald <danmcd@joyent.com>2019-04-03 14:42:53 -0400
commite0f1c0afa46cc84d4b1e40124032a9a87310386e (patch)
tree8aa10b26a7ae7380d42c5352be4dc06b0ed4cae0 /usr/src/lib/libfakekernel/common/cond.c
parentc93ad993b7959fc974ed6f4a92fce6041d98bd11 (diff)
downloadillumos-joyent-e0f1c0afa46cc84d4b1e40124032a9a87310386e.tar.gz
10499 Multi-modifier protection (MMP)
Portions contributed by: Jerry Jelinek <jerry.jelinek@joyent.com> Portions contributed by: Tim Chase <tim@chase2k.com> Portions contributed by: sanjeevbagewadi <sanjeev.bagewadi@gmail.com> Portions contributed by: John L. Hammond <john.hammond@intel.com> Portions contributed by: Giuseppe Di Natale <dinatale2@llnl.gov> Portions contributed by: Prakash Surya <surya1@llnl.gov> Reviewed by: George Melikov <mail@gmelikov.ru> Reviewed by: Tom Caputi <tcaputi@datto.com> Reviewed by: Kash Pande <kash@tripleback.net> Reviewed by: loli10K <ezomori.nozomu@gmail.com> Reviewed by: George Melikov <mail@gmelikov.ru> Reviewed by: Tony Hutter <hutter2@llnl.gov> Reviewed by: Gu Zheng <guzheng2331314@163.com> Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Ned Bass <bass6@llnl.gov> Reviewed by: Andreas Dilger <andreas.dilger@intel.com> Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Kody Kantor <kody.kantor@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libfakekernel/common/cond.c')
-rw-r--r--usr/src/lib/libfakekernel/common/cond.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/src/lib/libfakekernel/common/cond.c b/usr/src/lib/libfakekernel/common/cond.c
index 08d0265dd2..859722cb27 100644
--- a/usr/src/lib/libfakekernel/common/cond.c
+++ b/usr/src/lib/libfakekernel/common/cond.c
@@ -12,6 +12,7 @@
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
* Copyright 2017 RackTop Systems.
+ * Copyright 2019 Joyent, Inc.
*/
/*
@@ -119,6 +120,15 @@ cv_timedwait_sig(kcondvar_t *cv, kmutex_t *mp, clock_t abstime)
return (cv__twait(cv, mp, delta, 1, 0));
}
+int
+cv_timedwait_sig_hrtime(kcondvar_t *cv, kmutex_t *mp, hrtime_t tim)
+{
+ clock_t delta;
+
+ delta = tim;
+ return (cv__twait(cv, mp, delta, 1, 1));
+}
+
/*ARGSUSED*/
clock_t
cv_timedwait_hires(kcondvar_t *cv, kmutex_t *mp, hrtime_t tim, hrtime_t res,