summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-08-26 06:58:57 +0200
committerBen Skeggs <bskeggs@redhat.com>2010-08-27 00:39:22 +0200
commite3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99 (patch)
treecb36e6f2c1ff86dca9b2c84b992a85d6f22b3b79 /drivers/gpu/drm
parentdrm/nv20: Don't use pushbuf calls on the original nv20. (diff)
downloadlinux-e3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99.tar.xz
linux-e3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99.zip
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/gpu/drm')
-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);