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



details:   https://anonhg.NetBSD.org/src/rev/3af6da7141b2
branches:  riastradh-drm2
changeset: 788087:3af6da7141b2
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:10:15 2013 +0000

description:
Define linux_mutex_init in <linux/mutex.h> to make its uses greppable.

diffstat:

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

diffs (23 lines):

diff -r 45105d6364b8 -r 3af6da7141b2 sys/external/bsd/drm2/include/linux/mutex.h
--- a/sys/external/bsd/drm2/include/linux/mutex.h       Wed Jul 24 02:09:58 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/mutex.h       Wed Jul 24 02:10:15 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mutex.h,v 1.1.2.3 2013/07/24 01:57:20 riastradh Exp $  */
+/*     $NetBSD: mutex.h,v 1.1.2.4 2013/07/24 02:10:15 riastradh Exp $  */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,6 +38,13 @@
        kmutex_t mtx_lock;
 };
 
+/* Name collision.  Pooh.  */
+static inline void
+linux_mutex_init(struct mutex *mutex)
+{
+       mutex_init(&mutex->mtx_lock, MUTEX_DEFAULT, IPL_NONE);
+}
+
 static inline void
 mutex_lock(struct mutex *mutex)
 {



Home | Main Index | Thread Index | Old Index