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 Define get_jiffies_64. ...



details:   https://anonhg.NetBSD.org/src/rev/21067f97d138
branches:  trunk
changeset: 365838:21067f97d138
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:55:52 2018 +0000

description:
Define get_jiffies_64.  Hope a 32-bit approximation is enough!

diffstat:

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

diffs (23 lines):

diff -r 2094ced340a6 -r 21067f97d138 sys/external/bsd/drm2/include/linux/jiffies.h
--- a/sys/external/bsd/drm2/include/linux/jiffies.h     Mon Aug 27 06:55:43 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/jiffies.h     Mon Aug 27 06:55:52 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jiffies.h,v 1.9 2018/08/27 06:42:17 riastradh Exp $    */
+/*     $NetBSD: jiffies.h,v 1.10 2018/08/27 06:55:52 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -42,6 +42,13 @@
 #define        MAX_JIFFY_OFFSET        ((INT_MAX >> 1) - 1)
 
 static inline uint64_t
+get_jiffies_64(void)
+{
+
+       return (uint64_t)(unsigned)hardclock_ticks;
+}
+
+static inline uint64_t
 nsecs_to_jiffies64(uint64_t nsec)
 {
 



Home | Main Index | Thread Index | Old Index