diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-03-22 22:50:58 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-03-29 09:59:16 +0200 |
commit | 38b6441e4e75c0b319cfe4d9364c1059fc1e3c2b (patch) | |
tree | f3a0a122ab1dd1120456ce342e8ca95d66a097b8 /drivers/gpu/drm/drm_atomic_helper.c | |
parent | a4eff9aa6db8eb3d1864118f3558214b26f630b4 (diff) | |
download | op-kernel-dev-38b6441e4e75c0b319cfe4d9364c1059fc1e3c2b.zip op-kernel-dev-38b6441e4e75c0b319cfe4d9364c1059fc1e3c2b.tar.gz |
drm/atomic-helper: Remove the backoff hack from set_config
Another one bites the dust.
Again let's not forget to remove the temporary hidden acquire_ctx
assignment, now that we pass this all around explicitly it can go
away again.
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170322215058.8671-20-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_atomic_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index c137e39..c4538c5 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -2290,32 +2290,15 @@ int drm_atomic_helper_set_config(struct drm_mode_set *set, return -ENOMEM; state->legacy_set_config = true; - state->acquire_ctx = drm_modeset_legacy_acquire_ctx(crtc); -retry: + state->acquire_ctx = ctx; ret = __drm_atomic_helper_set_config(set, state); if (ret != 0) - goto fail; + return ret; ret = drm_atomic_commit(state); -fail: - if (ret == -EDEADLK) - goto backoff; drm_atomic_state_put(state); return ret; - -backoff: - drm_atomic_state_clear(state); - drm_atomic_legacy_backoff(state); - - /* - * Someone might have exchanged the framebuffer while we dropped locks - * in the backoff code. We need to fix up the fb refcount tracking the - * core does for us. - */ - crtc->primary->old_fb = crtc->primary->fb; - - goto retry; } EXPORT_SYMBOL(drm_atomic_helper_set_config); |