OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee508b8
)
drm: export drm_global_mutex for drivers to use
author
Ben Skeggs
<bskeggs@redhat.com>
Thu, 26 Aug 2010 04:58:57 +0000
(14:58 +1000)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_fops.c
b/drivers/gpu/drm/drm_fops.c
index
2ca8df8
..
41dfaae
100644
(file)
--- 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);