summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-08-26 14:58:57 +1000
committerBen Skeggs <bskeggs@redhat.com>2010-08-27 08:39:22 +1000
commite3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99 (patch)
treecb36e6f2c1ff86dca9b2c84b992a85d6f22b3b79 /drivers
parentee508b821c2042fb852a078e594bd36606973780 (diff)
downloadlinux-e3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99.tar.bz2
drm: export drm_global_mutex for drivers to use
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/drm_fops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fops.c b/drivers/gpu/drm/drm_fops.c
index 2ca8df8b6102..41dfaae41159 100644
--- a/drivers/gpu/drm/drm_fops.c
+++ b/drivers/gpu/drm/drm_fops.c
@@ -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);