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/dist/drm Convert mutex_init t...
details: https://anonhg.NetBSD.org/src/rev/2805e4f3ddce
branches: riastradh-drm2
changeset: 788129:2805e4f3ddce
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:22:28 2013 +0000
description:
Convert mutex_init to linux_mutex_init in drm_global.c.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_global.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 781e1d4e2aa1 -r 2805e4f3ddce sys/external/bsd/drm2/dist/drm/drm_global.c
--- a/sys/external/bsd/drm2/dist/drm/drm_global.c Wed Jul 24 02:22:13 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_global.c Wed Jul 24 02:22:28 2013 +0000
@@ -47,7 +47,11 @@
for (i = 0; i < DRM_GLOBAL_NUM; ++i) {
struct drm_global_item *item = &glob[i];
+#ifdef __NetBSD__
+ linux_mutex_init(&item->mutex);
+#else
mutex_init(&item->mutex);
+#endif
item->object = NULL;
item->refcount = 0;
}
Home |
Main Index |
Thread Index |
Old Index