]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Check for no-op priority changes first
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 May 2019 12:01:02 +0000 (13:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 May 2019 12:57:57 +0000 (13:57 +0100)
commit7f15ae0e24241d2d4eb38bdd8a6b329656eb153f
tree38c22d2acf4db021cfd231a791a809401b685bc4
parent9175a314acb0bc53b0683f260d980f3d84cbc7e0
drm/i915: Check for no-op priority changes first

In all likelihood, the priority and node are already in the CPU cache
and by checking them first, we can avoid having to chase the
*request->hwsp for the current breadcrumb.

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