drm/i915: Tweak scheduler's kick_submission()
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Mar 2020 11:59:47 +0000 (11:59 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Mar 2020 23:12:38 +0000 (23:12 +0000)
commit6cebcf746f3fa667c9a7a62787d74d783d9e4bdb
treebb4cc5d75cc6b2f43c0a30e432a3b26951087b3f
parent209df10bb4536c81c2540df96c02cd079435357f
drm/i915: Tweak scheduler's kick_submission()

Skip useless priority bumping on adding a new dependency by making sure
that we do update the priority if we would have rescheduled the active
cotnext.

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/20200310115947.6482-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_scheduler.c