Commit 4bd66391 authored by Chris Wilson's avatar Chris Wilson

drm/i915/breadcrumbs: Use booleans for intel_breadcrumbs_busy()

Since commit 9b6586ae ("drm/i915: Keep a global seqno per-engine")
converted intel_breadcrumbs_busy() to reporting a single boolean, we
need only compute a boolean internally (and not needlessly compute the
flag).
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: default avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170315210726.12095-1-chris@chris-wilson.co.uk
parent 1604a86d
...@@ -828,12 +828,12 @@ bool intel_breadcrumbs_busy(struct intel_engine_cs *engine) ...@@ -828,12 +828,12 @@ bool intel_breadcrumbs_busy(struct intel_engine_cs *engine)
if (b->irq_wait) { if (b->irq_wait) {
wake_up_process(b->irq_wait->tsk); wake_up_process(b->irq_wait->tsk);
busy |= intel_engine_flag(engine); busy = true;
} }
if (rcu_access_pointer(b->first_signal)) { if (rcu_access_pointer(b->first_signal)) {
wake_up_process(b->signaler); wake_up_process(b->signaler);
busy |= intel_engine_flag(engine); busy = true;
} }
spin_unlock_irq(&b->rb_lock); spin_unlock_irq(&b->rb_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment