diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2021-06-17 08:30:08 +0200 |
---|---|---|
committer | Matthew Auld <matthew.auld@intel.com> | 2021-06-17 14:22:59 +0100 |
commit | 5c43ec5d538a5fa1736d298e63a3f8ac03009eea (patch) | |
tree | 0b01805eb8b062df55f1f693e020737901e7ccf3 /drivers/gpu/drm/i915/i915_gem.h | |
parent | 1c4dbe056dab0b7c2a2f42f4d393cc7b9bdb98ad (diff) | |
download | linux-5c43ec5d538a5fa1736d298e63a3f8ac03009eea.tar.gz linux-5c43ec5d538a5fa1736d298e63a3f8ac03009eea.tar.bz2 linux-5c43ec5d538a5fa1736d298e63a3f8ac03009eea.zip |
drm/i915: Break out dma_resv ww locking utilities to separate files
As we're about to add more ww-related functionality,
break out the dma_resv ww locking utilities to their own files
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210617063018.92802-3-thomas.hellstrom@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.h b/drivers/gpu/drm/i915/i915_gem.h index 440c35f1abc9..d0752e5553db 100644 --- a/drivers/gpu/drm/i915/i915_gem.h +++ b/drivers/gpu/drm/i915/i915_gem.h @@ -123,16 +123,4 @@ static inline bool __tasklet_is_scheduled(struct tasklet_struct *t) return test_bit(TASKLET_STATE_SCHED, &t->state); } -struct i915_gem_ww_ctx { - struct ww_acquire_ctx ctx; - struct list_head obj_list; - bool intr; - struct drm_i915_gem_object *contended; -}; - -void i915_gem_ww_ctx_init(struct i915_gem_ww_ctx *ctx, bool intr); -void i915_gem_ww_ctx_fini(struct i915_gem_ww_ctx *ctx); -int __must_check i915_gem_ww_ctx_backoff(struct i915_gem_ww_ctx *ctx); -void i915_gem_ww_unlock_single(struct drm_i915_gem_object *obj); - #endif /* __I915_GEM_H__ */ |