drm: add drm_modeset_lock|unlock_all
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 1 Dec 2012 23:28:11 +0000 (00:28 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 20 Jan 2013 21:16:38 +0000 (22:16 +0100)
commit848499032504b1defdebdcf930aa70bd01a45ac1
tree54e84b73e68ce68ece6ef9adfa888afbb6ec8ed9
parent2d13b6796e420ed00389b7399a5d5ac7b1fed436
drm: add drm_modeset_lock|unlock_all

This is the first step towards introducing the new modeset locking
scheme. The plan is to put helper functions into place at all the
right places step-by-step, so that the final patch to switch on the
new locking scheme doesn't need to touch every single driver.

This helper here will serve as the shotgun solutions for all places
where a more fine-grained locking isn't (yet) implemented.

v2: Fixup kerneldoc for unlock_all.

Reviewed-by: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_crtc_helper.c
drivers/gpu/drm/drm_fb_helper.c
include/drm/drm_crtc.h