Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 12:24:05 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/linux: ktime.h

Log Message:
linux: ktime_get_real_seconds


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/external/bsd/drm2/include/linux/ktime.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/ktime.h
diff -u src/sys/external/bsd/drm2/include/linux/ktime.h:1.19 src/sys/external/bsd/drm2/include/linux/ktime.h:1.20
--- src/sys/external/bsd/drm2/include/linux/ktime.h:1.19	Sun Dec 19 12:21:30 2021
+++ src/sys/external/bsd/drm2/include/linux/ktime.h	Sun Dec 19 12:24:05 2021
@@ -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 @@ ktime_after(ktime_t a, ktime_t b)
 	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_ */

Reply via email to