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_add
details: https://anonhg.NetBSD.org/src/rev/669f6d512427
branches: trunk
changeset: 1027934:669f6d512427
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:18:31 2021 +0000
description:
ktime_add
diffstat:
sys/external/bsd/drm2/include/linux/ktime.h | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 1dbbd95bc2f7 -r 669f6d512427 sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h Sun Dec 19 01:18:24 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h Sun Dec 19 01:18:31 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ktime.h,v 1.12 2021/12/19 01:16:28 riastradh Exp $ */
+/* $NetBSD: ktime.h,v 1.13 2021/12/19 01:18:31 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -61,6 +61,12 @@
}
static inline ktime_t
+ktime_add(ktime_t a, ktime_t b)
+{
+ return ns_to_ktime(ktime_to_ns(a) + ktime_to_ns(b));
+}
+
+static inline ktime_t
ktime_add_ns(ktime_t kt, int64_t nsec)
{
return ns_to_ktime(ktime_to_ns(kt) + nsec);
Home |
Main Index |
Thread Index |
Old Index