Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux Bogus definitio...



details:   https://anonhg.NetBSD.org/src/rev/a71d2f922c1d
branches:  riastradh-drm2
changeset: 788446:a71d2f922c1d
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:50:16 2013 +0000

description:
Bogus definition of round_jiffies_up in drm2 <linux/timer.h>.

diffstat:

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

diffs (25 lines):

diff -r a3bdc0c35804 -r a71d2f922c1d sys/external/bsd/drm2/include/linux/timer.h
--- a/sys/external/bsd/drm2/include/linux/timer.h       Wed Jul 24 03:49:57 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/timer.h       Wed Jul 24 03:50:16 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer.h,v 1.1.2.2 2013/07/24 02:28:50 riastradh Exp $  */
+/*     $NetBSD: timer.h,v 1.1.2.3 2013/07/24 03:50:16 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -67,4 +67,15 @@
        callout_destroy(&timer->tl_callout);
 }
 
+/*
+ * XXX This is bogus -- the Linux version does various machinations to
+ * give some jitter so that stuff doesn't wake up all at once.
+ */
+
+static inline unsigned long
+round_jiffies_up(unsigned long j)
+{
+       return roundup(j, hz);
+}
+
 #endif  /* _LINUX_TIMER_H_ */



Home | Main Index | Thread Index | Old Index