diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.h b/drivers/gpu/drm/i915/i915_request.h index 7fa94b024968..90e9d170a0cd 100644 --- a/drivers/gpu/drm/i915/i915_request.h +++ b/drivers/gpu/drm/i915/i915_request.h | |||
@@ -277,8 +277,9 @@ long i915_request_wait(struct i915_request *rq, | |||
277 | __attribute__((nonnull(1))); | 277 | __attribute__((nonnull(1))); |
278 | #define I915_WAIT_INTERRUPTIBLE BIT(0) | 278 | #define I915_WAIT_INTERRUPTIBLE BIT(0) |
279 | #define I915_WAIT_LOCKED BIT(1) /* struct_mutex held, handle GPU reset */ | 279 | #define I915_WAIT_LOCKED BIT(1) /* struct_mutex held, handle GPU reset */ |
280 | #define I915_WAIT_ALL BIT(2) /* used by i915_gem_object_wait() */ | 280 | #define I915_WAIT_PRIORITY BIT(2) /* small priority bump for the request */ |
281 | #define I915_WAIT_FOR_IDLE_BOOST BIT(3) | 281 | #define I915_WAIT_ALL BIT(3) /* used by i915_gem_object_wait() */ |
282 | #define I915_WAIT_FOR_IDLE_BOOST BIT(4) | ||
282 | 283 | ||
283 | static inline bool intel_engine_has_started(struct intel_engine_cs *engine, | 284 | static inline bool intel_engine_has_started(struct intel_engine_cs *engine, |
284 | u32 seqno); | 285 | u32 seqno); |
@@ -332,14 +333,6 @@ static inline bool i915_request_completed(const struct i915_request *rq) | |||
332 | return __i915_request_completed(rq, seqno); | 333 | return __i915_request_completed(rq, seqno); |
333 | } | 334 | } |
334 | 335 | ||
335 | static inline bool i915_sched_node_signaled(const struct i915_sched_node *node) | ||
336 | { | ||
337 | const struct i915_request *rq = | ||
338 | container_of(node, const struct i915_request, sched); | ||
339 | |||
340 | return i915_request_completed(rq); | ||
341 | } | ||
342 | |||
343 | void i915_retire_requests(struct drm_i915_private *i915); | 336 | void i915_retire_requests(struct drm_i915_private *i915); |
344 | 337 | ||
345 | /* | 338 | /* |