]> 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)
commit27b3515cbba02a13ba79d7a2d488fe284b6d5792
treeff23e6d966c782637a46c6bacebf9a4be889fe68
parent59d35a116d4dcd443988e48db498fd9f12ee3b5c
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