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_master_cre...
details: https://anonhg.NetBSD.org/src/rev/2a1ee7215b61
branches: riastradh-drm2
changeset: 788201:2a1ee7215b61
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:40:57 2013 +0000
description:
Adapt drm_master_create to use DRM_INIT_WAITQUEUE.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_stub.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 3d1f3ab89f0e -r 2a1ee7215b61 sys/external/bsd/drm2/dist/drm/drm_stub.c
--- a/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:40:42 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:40:57 2013 +0000
@@ -169,7 +169,12 @@
kref_init(&master->refcount);
spin_lock_init(&master->lock.spinlock);
+#ifdef __NetBSD__
+ DRM_INIT_WAITQUEUE(&master->lock.lock_queue, "drmulckq");
+ DRM_INIT_WAITQUEUE(&master->lock.kernel_lock_queue, "drmklckq");
+#else
init_waitqueue_head(&master->lock.lock_queue);
+#endif
drm_ht_create(&master->magiclist, DRM_MAGIC_HASH_ORDER);
INIT_LIST_HEAD(&master->magicfree);
master->minor = minor;
Home |
Main Index |
Thread Index |
Old Index