]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Cache the last priolist lookup
authorMichał Winiarski <michal.winiarski@intel.com>
Thu, 28 Sep 2017 19:39:01 +0000 (20:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 29 Sep 2017 11:46:08 +0000 (12:46 +0100)
commit097a94815fb61ba4f184b3efd8f4e158116956d0
treee194a7ec04eaf8f2146eb39da3499f4e1171c6ea
parent7d1ea609f67a7d17c287ffdc008c79e0e91bc581
drm/i915/execlists: Cache the last priolist lookup

Avoid the repeated rbtree lookup for each request as we unwind them by
tracking the last priolist.

v2: Fix up my unhelpful suggestion of using default_priolist.

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170928193910.17988-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c