]> asedeno.scripts.mit.edu Git - linux.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)
commit190980187e2b66397da6eaec1d25b3e3272c2361
tree38c22d2acf4db021cfd231a791a809401b685bc4
parent52c76fb18a34fc08dd06f32b9fc83f1375f083ee
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