drm: no need to hold global mutex for static data
authorIlija Hadzic <ihadzic@research.bell-labs.com>
Wed, 26 Oct 2011 02:20:12 +0000 (22:20 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 5 Jan 2012 14:42:52 +0000 (14:42 +0000)
commit53fead966a584cd2130e0c5565726dd56ccf7924
treeab3f9ed2e01e7dad18f05554b2944639a6c46686
parentd7d0a75c4486f0e493af61d769aa49b94ae4c8bd
drm: no need to hold global mutex for static data

drm_getcap and drm_version ioctls only reads static data,
there is no need to protect them with drm_global_mutex,
so make them DRM_UNLOCKED

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_drv.c