diff options
author | Sean Paul <seanpaul@chromium.org> | 2018-11-29 16:04:16 +0100 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2018-11-29 16:48:31 +0100 |
commit | 2aa3eef85d4ac3843f4972269dbd39557e0ec0eb (patch) | |
tree | f01bf5c9287b2a7b334e0d533e0c3e4d266dbcd1 /drivers/gpu/drm | |
parent | drm: Move drm_mode_setcrtc() local re-init to failure path (diff) | |
download | linux-2aa3eef85d4ac3843f4972269dbd39557e0ec0eb.tar.xz linux-2aa3eef85d4ac3843f4972269dbd39557e0ec0eb.zip |
drm: Move atomic_state_put after locks are dropped
drm_atomic_state_put doesn't require any locking, and this makes things
easier for switching to modeset_lock_all helpers in a future patch
Changes in v2:
- Moved state->acquire_ctx clear to a separate patch (Daniel)
Reviewed-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20181129150423.239081-3-sean@poorly.run
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 8bce94731cd6..c7380ad3c51b 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -3294,9 +3294,9 @@ out: drm_modeset_backoff(&ctx); } - drm_atomic_state_put(state); drm_modeset_drop_locks(&ctx); drm_modeset_acquire_fini(&ctx); + drm_atomic_state_put(state); return err; } |