Module Name: src Committed By: riastradh Date: Wed Jul 24 01:51:21 UTC 2013
Modified Files: src/sys/external/bsd/drm2/include/linux [riastradh-drm2]: mutex.h Log Message: Fill <linux/mutex.h> with aliases for our mutex abstraction. mutex_lock_interruptible isn't; this may require revisiting. To generate a diff of this commit: cvs rdiff -u -r1.1.2.1 -r1.1.2.2 \ src/sys/external/bsd/drm2/include/linux/mutex.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/include/linux/mutex.h diff -u src/sys/external/bsd/drm2/include/linux/mutex.h:1.1.2.1 src/sys/external/bsd/drm2/include/linux/mutex.h:1.1.2.2 --- src/sys/external/bsd/drm2/include/linux/mutex.h:1.1.2.1 Wed Jul 24 00:33:12 2013 +++ src/sys/external/bsd/drm2/include/linux/mutex.h Wed Jul 24 01:51:21 2013 @@ -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_ */