]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Move new timelines to the end of active_list
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 16:25:58 +0000 (16:25 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 19 Nov 2019 16:46:58 +0000 (16:46 +0000)
commit3f8d9c3c7da75503fb5a33989dfe85ea79f67c10
tree62ffcca34529af993de05c0755b28f57029e0b0b
parente12dafdd5f4f3ef1ab824443526dd0b7983c8190
drm/i915/gt: Move new timelines to the end of active_list

When adding a new active timeline, place it at the end of the list. This
allows for intel_gt_retire_requests() to pick up the newcomer more
quickly and hopefully complete the retirement sooner. A miniscule
optimisation.

References: ae7a507b4b61 ("drm/i915/gt: Wait for new requests in intel_gt_retire_requests()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191119162559.3313003-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_timeline.c