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 linux: ktime_get_ns



details:   https://anonhg.NetBSD.org/src/rev/3a611ada4492
branches:  trunk
changeset: 1028785:3a611ada4492
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 12:01:21 2021 +0000

description:
linux: ktime_get_ns

diffstat:

 sys/external/bsd/drm2/include/linux/ktime.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 2656652445c1 -r 3a611ada4492 sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 12:01:12 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 12:01:21 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ktime.h,v 1.17 2021/12/19 11:38:04 riastradh Exp $     */
+/*     $NetBSD: ktime.h,v 1.18 2021/12/19 12:01:21 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -146,6 +146,12 @@
 }
 
 static inline uint64_t
+ktime_get_ns(void)
+{
+       return ktime_to_ns(ktime_get());
+}
+
+static inline uint64_t
 ktime_get_raw_ns(void)
 {
        return ktime_to_ns(ktime_get_raw());



Home | Main Index | Thread Index | Old Index