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 nsecs_to_jiffies.



details:   https://anonhg.NetBSD.org/src/rev/8c127b1c5b17
branches:  trunk
changeset: 835300:8c127b1c5b17
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 13:57:50 2018 +0000

description:
Define nsecs_to_jiffies.

diffstat:

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

diffs (24 lines):

diff -r 314a88fe3809 -r 8c127b1c5b17 sys/external/bsd/drm2/include/linux/jiffies.h
--- a/sys/external/bsd/drm2/include/linux/jiffies.h     Mon Aug 27 13:57:38 2018 +0000
+++ b/sys/external/bsd/drm2/include/linux/jiffies.h     Mon Aug 27 13:57:50 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: jiffies.h,v 1.11 2018/08/27 07:05:13 riastradh Exp $   */
+/*     $NetBSD: jiffies.h,v 1.12 2018/08/27 13:57:50 riastradh Exp $   */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -59,6 +59,14 @@
                return (nsec*hz)/1000000000;
 }
 
+static inline uint32_t
+nsecs_to_jiffies(uint64_t nsec)
+{
+
+       /* XXX Not sure what else to do but truncate...  */
+       return (uint32_t)nsecs_to_jiffies64(nsec);
+}
+
 static inline unsigned int
 msecs_to_jiffies(unsigned int msec)
 {



Home | Main Index | Thread Index | Old Index