diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-08 16:26:29 +0300 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-03-08 23:42:18 +0300 |
commit | f166244a6dafdbb6c4e9eba77a04fd55a5bf9657 (patch) | |
tree | 45e31080db5f786750c696cfde12cdd6deefec61 /drivers/gpu/drm/i915/i915_gem_object.h | |
parent | 03d1cac6eefef523fa6118f156e811252e6276b4 (diff) | |
download | linux-f166244a6dafdbb6c4e9eba77a04fd55a5bf9657.tar.xz |
drm/i915: Purge i915_gem_object_is_dead()
i915_gem_object_is_dead() was a temporary lockdep aide whilst
transitioning to a new locking structure for obj->mm. Since commit
1233e2db199d ("drm/i915: Move object backing storage manipulation to its
own locking") it is now unused and should be removed.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170308132629.7987-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_object.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_object.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_object.h b/drivers/gpu/drm/i915/i915_gem_object.h index d26155e0a026..174cf923c236 100644 --- a/drivers/gpu/drm/i915/i915_gem_object.h +++ b/drivers/gpu/drm/i915/i915_gem_object.h @@ -274,12 +274,6 @@ static inline void i915_gem_object_unlock(struct drm_i915_gem_object *obj) } static inline bool -i915_gem_object_is_dead(const struct drm_i915_gem_object *obj) -{ - return kref_read(&obj->base.refcount) == 0; -} - -static inline bool i915_gem_object_has_struct_page(const struct drm_i915_gem_object *obj) { return obj->ops->flags & I915_GEM_OBJECT_HAS_STRUCT_PAGE; |