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 Make udelay a s...



details:   https://anonhg.NetBSD.org/src/rev/2b2d1a7e49ec
branches:  riastradh-drm2
changeset: 788426:2b2d1a7e49ec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 03:44:54 2013 +0000

description:
Make udelay a static inline in <linux/delay.h>.

diffstat:

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

diffs (25 lines):

diff -r a16e9d6f2f03 -r 2b2d1a7e49ec sys/external/bsd/drm2/include/linux/delay.h
--- a/sys/external/bsd/drm2/include/linux/delay.h       Wed Jul 24 03:44:39 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/delay.h       Wed Jul 24 03:44:54 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: delay.h,v 1.1.2.4 2013/07/24 03:36:10 riastradh Exp $  */
+/*     $NetBSD: delay.h,v 1.1.2.5 2013/07/24 03:44:54 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,9 +38,13 @@
 
 #include <machine/param.h>
 
-#define        udelay  DELAY
+#define        MAX_UDELAY_MS   5
 
-#define        MAX_UDELAY_MS   5
+static inline void
+udelay(unsigned int usec)
+{
+       DELAY(usec);
+}
 
 static inline void
 msleep(unsigned int msec)



Home | Main Index | Thread Index | Old Index