Skip to content

Commit 16fa6b8

Browse files
Tvrtko Ursulintursulin
authored andcommitted
drm/i915: Use provided dma_fence_is_chain
Replace open-coded helper with the subsystem one. Signed-off-by: Tvrtko Ursulin <[email protected]> Reviewed-by: Matthew Brost <[email protected]> Signed-off-by: Tvrtko Ursulin <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 5dff172 commit 16fa6b8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpu/drm/i915/gem/i915_gem_wait.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ static void fence_set_priority(struct dma_fence *fence,
106106
rcu_read_unlock();
107107
}
108108

109-
static inline bool __dma_fence_is_chain(const struct dma_fence *fence)
110-
{
111-
return fence->ops == &dma_fence_chain_ops;
112-
}
113-
114109
void i915_gem_fence_wait_priority(struct dma_fence *fence,
115110
const struct i915_sched_attr *attr)
116111
{
@@ -126,7 +121,7 @@ void i915_gem_fence_wait_priority(struct dma_fence *fence,
126121

127122
for (i = 0; i < array->num_fences; i++)
128123
fence_set_priority(array->fences[i], attr);
129-
} else if (__dma_fence_is_chain(fence)) {
124+
} else if (dma_fence_is_chain(fence)) {
130125
struct dma_fence *iter;
131126

132127
/* The chain is ordered; if we boost the last, we boost all */

0 commit comments

Comments
 (0)