From: Ben Skeggs Date: Thu, 26 Aug 2010 04:58:57 +0000 (+1000) Subject: drm: export drm_global_mutex for drivers to use X-Git-Tag: v2.6.36-rc3~9^2~6^2~1 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=e3461a2bc0d67ce60a915e0f26e2a6eb4a4d4b99;p=uclinux-h8%2Flinux.git 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 --- 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);