drm/i915: use crtc_htotal in watermark calculations to match fastboot v2
authorJesse Barnes <jbarnes@virtuousgeek.org>
Wed, 27 Nov 2013 19:10:26 +0000 (11:10 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Nov 2013 19:34:48 +0000 (20:34 +0100)
commitfec8cba306f974f3a4491176994de5d821273643
tree5725a98be9586d1cc3f7b7231b0e0b9a644af89e
parenta415d355645ca5e8797235a76026ca2622ceefdb
drm/i915: use crtc_htotal in watermark calculations to match fastboot v2

This value is more correct, and matches what we read out in the fastboot
code.  Without this, the watermark code will panic after the first mode
setting activity after a fastboot.

v2: fix up HSW ->clock usage too (Ville)

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