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 time_after32



details:   https://anonhg.NetBSD.org/src/rev/e105a8c035d9
branches:  trunk
changeset: 1028042:e105a8c035d9
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Dec 19 01:43:04 2021 +0000

description:
time_after32

diffstat:

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

diffs (20 lines):

diff -r 97d7ca1b879e -r e105a8c035d9 sys/external/bsd/drm2/include/linux/time.h
--- a/sys/external/bsd/drm2/include/linux/time.h        Sun Dec 19 01:42:55 2021 +0000
+++ b/sys/external/bsd/drm2/include/linux/time.h        Sun Dec 19 01:43:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: time.h,v 1.7 2021/12/19 01:21:45 riastradh Exp $       */
+/*     $NetBSD: time.h,v 1.8 2021/12/19 01:43:04 riastradh Exp $       */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -141,4 +141,10 @@
        ts->tv_nsec = nsec;
 }
 
+static inline bool
+time_after32(uint32_t a, uint32_t b)
+{
+       return (int32_t)(b - a) < 0;
+}
+
 #endif  /* _LINUX_TIME_H_ */



Home | Main Index | Thread Index | Old Index