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_real_se...
details: https://anonhg.NetBSD.org/src/rev/4819a45822b5
branches: trunk
changeset: 1028885:4819a45822b5
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:24:05 2021 +0000
description:
linux: ktime_get_real_seconds
diffstat:
sys/external/bsd/drm2/include/linux/ktime.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r 0d73bc0c238b -r 4819a45822b5 sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h Sun Dec 19 12:23:58 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h Sun Dec 19 12:24:05 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ktime.h,v 1.19 2021/12/19 12:21:30 riastradh Exp $ */
+/* $NetBSD: ktime.h,v 1.20 2021/12/19 12:24:05 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
#include <sys/endian.h>
#include <sys/kernel.h>
#include <sys/time.h>
+#include <sys/timevar.h>
#include <linux/jiffies.h>
#include <linux/time.h>
@@ -216,4 +217,10 @@
return ktime_to_ns(a) > ktime_to_ns(b);
}
+static inline time_t
+ktime_get_real_seconds(void)
+{
+ return time_second;
+}
+
#endif /* _LINUX_KTIME_H_ */
Home |
Main Index |
Thread Index |
Old Index