Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/linux Define ktime_get_raw_ns.
details: https://anonhg.NetBSD.org/src/rev/23fd4d8268ff
branches: trunk
changeset: 992576:23fd4d8268ff
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 07:05:00 2018 +0000
description:
Define ktime_get_raw_ns.
diffstat:
sys/external/bsd/drm2/include/linux/ktime.h | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r f47607eb602f -r 23fd4d8268ff sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h Mon Aug 27 07:04:44 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h Mon Aug 27 07:05:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ktime.h,v 1.4 2018/08/27 07:03:11 riastradh Exp $ */
+/* $NetBSD: ktime.h,v 1.5 2018/08/27 07:05:00 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -135,6 +135,14 @@
return kt;
}
+static inline uint64_t
+ktime_get_raw_ns(void)
+{
+
+ /* XXX */
+ return ktime_to_ns(ktime_get());
+}
+
static inline ktime_t
ktime_get_monotonic_offset(void)
{
Home |
Main Index |
Thread Index |
Old Index