提交 db883628 编写于 作者: R Rob Clark 提交者: Dave Airlie

drm/atomic: rip out unnecessary locking checks

For async commit, it is *intentional* that those locks are not held.
Reviewed-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: NRob Clark <robdclark@gmail.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 d7f8db53
......@@ -1006,8 +1006,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev,
if (!crtc)
continue;
WARN_ON(!drm_modeset_is_locked(&crtc->mutex));
funcs = crtc->helper_private;
if (!funcs || !funcs->atomic_begin)
......@@ -1023,8 +1021,6 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev,
if (!plane)
continue;
WARN_ON(!drm_modeset_is_locked(&plane->mutex));
funcs = plane->helper_private;
if (!funcs || !funcs->atomic_update)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册