]> 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)
commit7a75e672f7d83cbafbee131fa11845d7e5d32af4
tree38c22d2acf4db021cfd231a791a809401b685bc4
parenta3908d1b023638301ea9f9b05c36bed4a0c8699a
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