OSDN Git Service

drm/i915: Simplify vlv/chv rc6 residency calculation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 28 Sep 2015 20:43:43 +0000 (23:43 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:38 +0000 (10:20 +0200)
commit2cc9fab180e8add4159ed1fc874131f984d0bcb1
tree1fc8fbf875a77fa7532627fa6f2639979fa99c43
parentbfa7df01a092e92ae764d39fee07fc3f486ed6a9
drm/i915: Simplify vlv/chv rc6 residency calculation

We have the czclk frequency in dev_priv now, so let's just use it
when converting the rc6 counters to milliseconds. This eliminates
a bunch of hairy code that essentially tries to extract the czclk
frequency using yet another method.

v2: Fix typos in commit message (Imre)

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