drm/i915: Use czclk_freq in vlv c0 residency calculations
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Sep 2015 20:29:20 +0000 (23:29 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:39 +0000 (10:20 +0200)
commit7bad74d57c81b08218cc564af3a78427e12bf3ac
treee924b66062059294cf21f8fab305005da9490a4e
parent2cc9fab180e8add4159ed1fc874131f984d0bcb1
drm/i915: Use czclk_freq in vlv c0 residency calculations

Replace the use of mem_freq/4 with czclk_freq in the vlv c0 residency
calculations.

Also deal with VLV_COUNT_RANGE_HIGH which affects all RCx residency
counters. We have just enough bits to do this without intermediate
divisions.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_irq.c