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 Add linux_mutex...
details: https://anonhg.NetBSD.org/src/rev/4591e248bf0f
branches: riastradh-drm2
changeset: 788186:4591e248bf0f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:37:00 2013 +0000
description:
Add linux_mutex_destroy to <linux/mutex.h>.
diffstat:
sys/external/bsd/drm2/include/linux/mutex.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 87c7772ebc4c -r 4591e248bf0f sys/external/bsd/drm2/include/linux/mutex.h
--- a/sys/external/bsd/drm2/include/linux/mutex.h Wed Jul 24 02:36:46 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/mutex.h Wed Jul 24 02:37:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.1.2.4 2013/07/24 02:10:15 riastradh Exp $ */
+/* $NetBSD: mutex.h,v 1.1.2.5 2013/07/24 02:37:00 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -45,6 +45,13 @@
mutex_init(&mutex->mtx_lock, MUTEX_DEFAULT, IPL_NONE);
}
+/* Another name collision. */
+static inline void
+linux_mutex_destroy(struct mutex *mutex)
+{
+ mutex_destroy(&mutex->mtx_lock);
+}
+
static inline void
mutex_lock(struct mutex *mutex)
{
Home |
Main Index |
Thread Index |
Old Index