Commit db883628 authored by Rob Clark's avatar Rob Clark Committed by Dave Airlie

drm/atomic: rip out unnecessary locking checks

For async commit, it is *intentional* that those locks are not held.
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d7f8db53
...@@ -1006,8 +1006,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev, ...@@ -1006,8 +1006,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev,
if (!crtc) if (!crtc)
continue; continue;
WARN_ON(!drm_modeset_is_locked(&crtc->mutex));
funcs = crtc->helper_private; funcs = crtc->helper_private;
if (!funcs || !funcs->atomic_begin) if (!funcs || !funcs->atomic_begin)
...@@ -1023,8 +1021,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev, ...@@ -1023,8 +1021,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev,
if (!plane) if (!plane)
continue; continue;
WARN_ON(!drm_modeset_is_locked(&plane->mutex));
funcs = plane->helper_private; funcs = plane->helper_private;
if (!funcs || !funcs->atomic_update) if (!funcs || !funcs->atomic_update)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment