drm: Nuke drm_atomic_legacy_backoff
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Jul 2017 08:01:22 +0000 (10:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Aug 2017 12:49:29 +0000 (14:49 +0200)
Finally all users are gone!

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20170725080122.20548-9-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_atomic.c
include/drm/drm_atomic.h

index 306fdca92abf4f4c2ea30e9f4edc48714260ae4d..1b755439f5918b7b61c43577b86a5f7fe4aea955 100644 (file)
@@ -1587,38 +1587,6 @@ drm_atomic_add_affected_planes(struct drm_atomic_state *state,
 }
 EXPORT_SYMBOL(drm_atomic_add_affected_planes);
 
-/**
- * drm_atomic_legacy_backoff - locking backoff for legacy ioctls
- * @state: atomic state
- *
- * This function should be used by legacy entry points which don't understand
- * -EDEADLK semantics. For simplicity this one will grab all modeset locks after
- * the slowpath completed.
- */
-void drm_atomic_legacy_backoff(struct drm_atomic_state *state)
-{
-       struct drm_device *dev = state->dev;
-       int ret;
-       bool global = false;
-
-       if (WARN_ON(dev->mode_config.acquire_ctx == state->acquire_ctx)) {
-               global = true;
-
-               dev->mode_config.acquire_ctx = NULL;
-       }
-
-retry:
-       drm_modeset_backoff(state->acquire_ctx);
-
-       ret = drm_modeset_lock_all_ctx(dev, state->acquire_ctx);
-       if (ret)
-               goto retry;
-
-       if (global)
-               dev->mode_config.acquire_ctx = state->acquire_ctx;
-}
-EXPORT_SYMBOL(drm_atomic_legacy_backoff);
-
 /**
  * drm_atomic_check_only - check whether a given config would work
  * @state: atomic configuration to check
index 711617fdf032c8f31164de97476ed72e013796b0..8a5808eb562876cd35f2d3f098db5c9156757f3b 100644 (file)
@@ -545,8 +545,6 @@ int __must_check
 drm_atomic_add_affected_planes(struct drm_atomic_state *state,
                               struct drm_crtc *crtc);
 
-void drm_atomic_legacy_backoff(struct drm_atomic_state *state);
-
 void
 drm_atomic_clean_old_fb(struct drm_device *dev, unsigned plane_mask, int ret);