]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Improve vlv_gpu_freq() and vlv_freq_opcode()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 5 Nov 2013 20:42:28 +0000 (22:42 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 6 Nov 2013 17:05:20 +0000 (18:05 +0100)
commit07ab118b393410c65146f44c17b0ae5373eb972e
tree0ad0fd4e2a99f2151cc9de35f8beec9c2f70deb0
parentc164f833cc842b427f817c3a6f30d806b1d57ef1
drm/i915: Improve vlv_gpu_freq() and vlv_freq_opcode()

We're currently miscalculating the VLV graphics clock a little bit.
This is caused by rounding the step to integer MHz, which does not
match reality. Change the formula to match the GUnit HAS to give
more accurate answers.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c