]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Do not rely on for loop caching the mask
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 25 Jul 2019 12:50:56 +0000 (13:50 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Fri, 26 Jul 2019 16:14:06 +0000 (17:14 +0100)
commit16dcfb93fc7f05fcae300feb2fd08b1d874f1b7d
treeff23e6d966c782637a46c6bacebf9a4be889fe68
parentceedab70105c292b982ae22aede5baaf83bee4d0
drm/i915: Do not rely on for loop caching the mask

for_each_engine_masked caches the engine mask but what does the caller
know.

Cache it explicitly for clarity and while at it correct the type to match.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190725125056.11942-1-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_active.c