drm/i915: Do not re-calculate num_rings locally
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 19 Jun 2017 10:59:17 +0000 (11:59 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 20 Jun 2017 11:42:13 +0000 (12:42 +0100)
commitc58949f4185020d6d447698818fc7614adec69cf
tree9873aa991e99fc84d64c12de230a0b595408dd71
parent33def1ff7b09645f3631059ad9ce23e2c65e9016
drm/i915: Do not re-calculate num_rings locally

Since bb8f0f5abdd7 ("drm/i915: Split intel_engine allocation
and initialisation") intel_info->num_rings is set early in the
load sequence and so available to be used direclty in the 2nd
load phase.

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