drm/i915/vlv: fix up broken precision in vlv_crtc_clock_get
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 25 Sep 2013 21:24:01 +0000 (14:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:49:10 +0000 (07:49 -0800)
commitfd7a5ac9b59e74544181598fba54fd843b878db4
treeca4bfe9261efc1fb55dbd078141a3fe3e6ed9278
parent7870bfa3a3516aa89db7c7260fa0e524850b2a56
drm/i915/vlv: fix up broken precision in vlv_crtc_clock_get

commit 662c6ecbcdca1fe8a5402f6c83d98d242917a043 upstream.

With some divider values we end up with the wrong result.  So remove the
intermediates (like Ville suggested in the first place) to get the right
answer.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/intel_display.c