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 Fill <linux/mut...
details: https://anonhg.NetBSD.org/src/rev/1aae266c9f92
branches: riastradh-drm2
changeset: 788017:1aae266c9f92
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 01:51:21 2013 +0000
description:
Fill <linux/mutex.h> with aliases for our mutex abstraction.
mutex_lock_interruptible isn't; this may require revisiting.
diffstat:
sys/external/bsd/drm2/include/linux/mutex.h | 13 ++++++++++++-
1 files changed, 12 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 2843a9a25095 -r 1aae266c9f92 sys/external/bsd/drm2/include/linux/mutex.h
--- a/sys/external/bsd/drm2/include/linux/mutex.h Wed Jul 24 01:51:06 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/mutex.h Wed Jul 24 01:51:21 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.1.2.1 2013/07/24 00:33:12 riastradh Exp $ */
+/* $NetBSD: mutex.h,v 1.1.2.2 2013/07/24 01:51:21 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,15 @@
#ifndef _LINUX_MUTEX_H_
#define _LINUX_MUTEX_H_
+#include <sys/mutex.h>
+
+/* XXX Kludge: Replace `struct mutex' by `struct kmutex'. */
+#define mutex kmutex
+
+#define mutex_lock mutex_enter
+#define mutex_lock_interruptible mutex_enter /* XXX */
+#define mutex_trylock mutex_tryenter
+#define mutex_unlock mutex_exit
+#define mutex_is_locked mutex_owned
+
#endif /* _LINUX_MUTEX_H_ */
Home |
Main Index |
Thread Index |
Old Index