summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/common/sys/time.h')
-rw-r--r--usr/src/uts/common/sys/time.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/src/uts/common/sys/time.h b/usr/src/uts/common/sys/time.h
index 8ec74d4ecd..f6cfa1a7e5 100644
--- a/usr/src/uts/common/sys/time.h
+++ b/usr/src/uts/common/sys/time.h
@@ -15,6 +15,7 @@
* Use is subject to license terms.
*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2016 Joyent, Inc.
*
* Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
*/
@@ -266,6 +267,14 @@ typedef longlong_t hrtime_t;
#if defined(_KERNEL) || defined(_FAKE_KERNEL)
+/*
+ * Unsigned counterpart to hrtime_t
+ */
+typedef u_longlong_t uhrtime_t;
+
+#define HRTIME_MAX LLONG_MAX
+#define UHRTIME_MAX ULLONG_MAX
+
#include <sys/time_impl.h>
#include <sys/mutex.h>