drm: kill reclaim_buffers_idlelocked functions
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2011 21:42:29 +0000 (23:42 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Jul 2012 02:49:27 +0000 (22:49 -0400)
The only two users are now folded into the drivers preclose functions,
so this is unused.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c
include/drm/drmP.h

index 123de28f94ef0613441b6656e9be9f309577c387..f6231f0203e856a7a2feddc8b1c23c7ea9f29220 100644 (file)
@@ -417,14 +417,6 @@ static void drm_master_release(struct drm_device *dev, struct file *filp)
            file_priv->master->lock.hw_lock)
                drm_reclaim_locked_buffers(dev, filp);
 
-       if (dev->driver->reclaim_buffers_idlelocked &&
-           file_priv->master->lock.hw_lock) {
-               drm_idlelock_take(&file_priv->master->lock);
-               dev->driver->reclaim_buffers_idlelocked(dev, file_priv);
-               drm_idlelock_release(&file_priv->master->lock);
-       }
-
-
        if (drm_i_have_hw_lock(dev, file_priv)) {
                DRM_DEBUG("File %p released, freeing lock for context %d\n",
                          filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
index e4e3be3b94647e42ae342c3bf85795b657358126..5f2211c9130dc1f031edafc9b476c81517559fbd 100644 (file)
@@ -880,8 +880,6 @@ struct drm_driver {
                                 struct drm_file * file_priv);
        void (*reclaim_buffers_locked) (struct drm_device *dev,
                                        struct drm_file *file_priv);
-       void (*reclaim_buffers_idlelocked) (struct drm_device *dev,
-                                           struct drm_file *file_priv);
        void (*set_version) (struct drm_device *dev,
                             struct drm_set_version *sv);