drm/i915: Store number of active engines in device info
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Wed, 10 Aug 2016 15:22:10 +0000 (16:22 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 11 Aug 2016 10:33:10 +0000 (11:33 +0100)
commitc1bb11451ed93aae53efcf461f936a54675dcbea
treede3263fcbacc8069764b266b67e6685653c2ecaf
parent17f298cf5458045562157a8bb7a592dbdace3d95
drm/i915: Store number of active engines in device info

Until now code was calling hweight32 to figure out the
number from device_info->ring_mask at runtime. Instead
we can cache it at engine init time and use directly.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1470842530-35854-1-git-send-email-tvrtko.ursulin@linux.intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.c