diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-21 17:21:02 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-01-22 08:13:53 -0500 |
commit | 0e21834e18c545bdebed527209a7b6bb8aed9f9b (patch) | |
tree | 5a791de3433a477408eeff103b85ffff6840612a /drivers/gpu/drm/i915/i915_request.c | |
parent | 924090f4237bc34f32bb1992bbf334af76e64a29 (diff) |
drm/i915: Tidy common test_bit probing of i915_request->fence.flags
A repeated pattern is to test the signaled bit of our
request->fence.flags. Make this an inline to shorten a few lines and
remove unnecessary line continuations.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190121222117.23305-20-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/i915_request.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_request.c b/drivers/gpu/drm/i915/i915_request.c index c7ce27785cda..426194ee978a 100644 --- a/drivers/gpu/drm/i915/i915_request.c +++ b/drivers/gpu/drm/i915/i915_request.c | |||
@@ -198,7 +198,7 @@ static void __retire_engine_request(struct intel_engine_cs *engine, | |||
198 | spin_unlock(&engine->timeline.lock); | 198 | spin_unlock(&engine->timeline.lock); |
199 | 199 | ||
200 | spin_lock(&rq->lock); | 200 | spin_lock(&rq->lock); |
201 | if (!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &rq->fence.flags)) | 201 | if (!i915_request_signaled(rq)) |
202 | dma_fence_signal_locked(&rq->fence); | 202 | dma_fence_signal_locked(&rq->fence); |
203 | if (test_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, &rq->fence.flags)) | 203 | if (test_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, &rq->fence.flags)) |
204 | intel_engine_cancel_signaling(rq); | 204 | intel_engine_cancel_signaling(rq); |