提交 3ae6b644 编写于 作者: D Daniel Vetter 提交者: Dave Airlie

drm: kill reclaim_buffers_idlelocked functions

The only two users are now folded into the drivers preclose functions,
so this is unused.
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 ea5e4374
...@@ -417,14 +417,6 @@ static void drm_master_release(struct drm_device *dev, struct file *filp) ...@@ -417,14 +417,6 @@ static void drm_master_release(struct drm_device *dev, struct file *filp)
file_priv->master->lock.hw_lock) file_priv->master->lock.hw_lock)
drm_reclaim_locked_buffers(dev, filp); 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)) { if (drm_i_have_hw_lock(dev, file_priv)) {
DRM_DEBUG("File %p released, freeing lock for context %d\n", DRM_DEBUG("File %p released, freeing lock for context %d\n",
filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock)); filp, _DRM_LOCKING_CONTEXT(file_priv->master->lock.hw_lock->lock));
......
...@@ -880,8 +880,6 @@ struct drm_driver { ...@@ -880,8 +880,6 @@ struct drm_driver {
struct drm_file * file_priv); struct drm_file * file_priv);
void (*reclaim_buffers_locked) (struct drm_device *dev, void (*reclaim_buffers_locked) (struct drm_device *dev,
struct drm_file *file_priv); 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, void (*set_version) (struct drm_device *dev,
struct drm_set_version *sv); struct drm_set_version *sv);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册