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 ktime_after



details:   https://anonhg.NetBSD.org/src/rev/950367999879
branches:  trunk
changeset: 1027912:950367999879
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:15:35 2021 +0000

description:
ktime_after

diffstat:

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

diffs (20 lines):

diff -r 6771c9d92e8e -r 950367999879 sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:15:28 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:15:35 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ktime.h,v 1.10 2021/12/19 01:15:14 riastradh Exp $     */
+/*     $NetBSD: ktime.h,v 1.11 2021/12/19 01:15:35 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -159,4 +159,10 @@
        return ((a <= x) && (x <= b));
 }
 
+static inline bool
+ktime_after(ktime_t a, ktime_t b)
+{
+       return ktime_to_ns(a) > ktime_to_ns(b);
+}
+
 #endif  /* _LINUX_KTIME_H_ */



Home | Main Index | Thread Index | Old Index