[PATCH v4 1/3] drm: Implement drm_modeset_lock_all_ctx()

2015-12-01 Thread Daniel Vetter
On Tue, Dec 01, 2015 at 10:56:59AM +0100, Thierry Reding wrote: > From: Thierry Reding > > This function is like drm_modeset_lock_all(), but it takes the lock > acquisition context as a parameter rather than storing it in the DRM > device's mode_config structure. > > Implement drm_modeset_{,un}l

[PATCH v4 1/3] drm: Implement drm_modeset_lock_all_ctx()

2015-12-01 Thread Thierry Reding
From: Thierry Reding This function is like drm_modeset_lock_all(), but it takes the lock acquisition context as a parameter rather than storing it in the DRM device's mode_config structure. Implement drm_modeset_{,un}lock_all() in terms of the new function for better code reuse, and add a note t