Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3461a2b authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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: default avatarBen Skeggs <bskeggs@redhat.com>
parent ee508b82
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);