OSDN Git Service

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)
commit3f99a61441e5d44b6dc00461a74d759c78191682
treeff23e6d966c782637a46c6bacebf9a4be889fe68
parent5cca503817d0e96f8d902c6598d5105dca5e718a
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