]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm: export drm_global_mutex for drivers to use
authorBen Skeggs <bskeggs@redhat.com>
Thu, 26 Aug 2010 04:58:57 +0000 (14:58 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 26 Aug 2010 22:39:22 +0000 (08:39 +1000)
Nouveau needs to be able to drop the mutex before sleeping to prevent a
deadlock from occuring.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/drm_fops.c

index 2ca8df8b6102a0002cda630460333e94bc3c47c0..41dfaae411590567e84970e165946067f498fcb0 100644 (file)
@@ -41,6 +41,7 @@
 
 /* from BKL pushdown: note that nothing else serializes idr_find() */
 DEFINE_MUTEX(drm_global_mutex);
+EXPORT_SYMBOL(drm_global_mutex);
 
 static int drm_open_helper(struct inode *inode, struct file *filp,
                           struct drm_device * dev);