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 Add Linux lockdep cruft.
details: https://anonhg.NetBSD.org/src/rev/1ae669559eee
branches: trunk
changeset: 331246:1ae669559eee
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Aug 06 13:51:49 2014 +0000
description:
Add Linux lockdep cruft.
diffstat:
sys/external/bsd/drm2/include/linux/mutex.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 81d9a9d68952 -r 1ae669559eee sys/external/bsd/drm2/include/linux/mutex.h
--- a/sys/external/bsd/drm2/include/linux/mutex.h Wed Aug 06 13:51:37 2014 +0000
+++ b/sys/external/bsd/drm2/include/linux/mutex.h Wed Aug 06 13:51:49 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.4 2014/07/16 20:59:58 riastradh Exp $ */
+/* $NetBSD: mutex.h,v 1.5 2014/08/06 13:51:49 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -40,6 +40,9 @@
kmutex_t mtx_lock;
};
+struct lock_class_key {
+};
+
/* Name collision. Pooh. */
static inline void
linux_mutex_init(struct mutex *mutex)
@@ -47,6 +50,14 @@
mutex_init(&mutex->mtx_lock, MUTEX_DEFAULT, IPL_NONE);
}
+/* Lockdep stuff. */
+static inline void
+__mutex_init(struct mutex *mutex, const char *name __unused,
+ struct lock_class_key *key __unused)
+{
+ linux_mutex_init(mutex);
+}
+
/* Another name collision. */
static inline void
linux_mutex_destroy(struct mutex *mutex)
Home |
Main Index |
Thread Index |
Old Index