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_t is now just int6...



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

description:
ktime_t is now just int64_t, no longer a union.

diffstat:

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

diffs (37 lines):

diff -r 941697b26973 -r 38b359d40cb7 sys/external/bsd/drm2/include/linux/ktime.h
--- a/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:15:07 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/ktime.h       Sun Dec 19 01:15:14 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ktime.h,v 1.9 2020/02/14 14:34:59 maya Exp $   */
+/*     $NetBSD: ktime.h,v 1.10 2021/12/19 01:15:14 riastradh Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,16 +40,12 @@
 #include <linux/jiffies.h>
 #include <linux/time.h>
 
-union ktime {
-       int64_t kt_nsec;
-};
-
-typedef union ktime ktime_t;
+typedef int64_t        ktime_t;
 
 static inline int64_t
 ktime_to_ns(ktime_t kt)
 {
-       return kt.kt_nsec;
+       return kt;
 }
 
 static inline int64_t
@@ -61,7 +57,7 @@
 static inline ktime_t
 ns_to_ktime(int64_t nsec)
 {
-       return (ktime_t) { .kt_nsec = nsec };
+       return nsec;
 }
 
 static inline ktime_t



Home | Main Index | Thread Index | Old Index