aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_auth.c
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2016-06-14 18:50:57 +0000
committerDaniel Vetter <[email protected]>2016-06-16 08:16:37 +0000
commit1a75a222f5ca1063249b5c92972d32dcc3c8966e (patch)
tree396a78ce075816b8cd4b6d0a86696016aed7eefb /drivers/gpu/drm/drm_auth.c
parentdrm: Nuke legacy maps debugfs files (diff)
downloadkernel-1a75a222f5ca1063249b5c92972d32dcc3c8966e.tar.gz
kernel-1a75a222f5ca1063249b5c92972d32dcc3c8966e.zip
drm: Hide hw.lock cleanup in filp->release better
A few things: - Rename the cleanup function from drm_master_release to drm_legacy_lock_release. It doesn't relase any master stuff, but just the legacy hw lock. - Hide it in drm_lock.c, which allows us to make a few more functions static in there. To avoid forward decl we need to shuffle the code a bit though. - Push the check for ->master into the function itself. - Only call this for !DRIVER_MODESET. End result: Another place that takes struct_mutex gone for good for modern drivers. v2: Remove leftover comment. Reviewed-by: Chris Wilson <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
0 files changed, 0 insertions, 0 deletions