Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 03:50:16 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: timer.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 \
    src/sys/external/bsd/drm2/include/linux/timer.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/include/linux/timer.h
diff -u src/sys/external/bsd/drm2/include/linux/timer.h:1.1.2.2 src/sys/external/bsd/drm2/include/linux/timer.h:1.1.2.3
--- src/sys/external/bsd/drm2/include/linux/timer.h:1.1.2.2	Wed Jul 24 02:28:50 2013
+++ src/sys/external/bsd/drm2/include/linux/timer.h	Wed Jul 24 03:50:16 2013
@@ -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 @@ del_timer_sync(struct timer_list *timer)
 	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_ */

Reply via email to