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 Adapt drm_fill_in_de...
details: https://anonhg.NetBSD.org/src/rev/06547ca9181e
branches: riastradh-drm2
changeset: 788203:06547ca9181e
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:41:28 2013 +0000
description:
Adapt drm_fill_in_dev to use linux_mutex_init.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_stub.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (17 lines):
diff -r bc6cc876d94d -r 06547ca9181e sys/external/bsd/drm2/dist/drm/drm_stub.c
--- a/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:41:13 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:41:28 2013 +0000
@@ -307,8 +307,13 @@
spin_lock_init(&dev->count_lock);
spin_lock_init(&dev->event_lock);
+#ifdef __NetBSD__
+ linux_mutex_init(&dev->struct_mutex);
+ linux_mutex_init(&dev->ctxlist_mutex);
+#else
mutex_init(&dev->struct_mutex);
mutex_init(&dev->ctxlist_mutex);
+#endif
if (drm_ht_create(&dev->map_hash, 12)) {
return -ENOMEM;
Home |
Main Index |
Thread Index |
Old Index