]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix haswell linetime watermarks calculation
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 3 May 2013 20:23:40 +0000 (17:23 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 21 May 2013 09:26:52 +0000 (11:26 +0200)
commit672126f0829f39fe2323ec0abf40fb70624797ca
tree3021f454514d44379ecf9f9b5d57c24341f64b36
parent9582445c296eba7e62a214079f27646e01305084
drm/i915: fix haswell linetime watermarks calculation

Move the "*8"  calculation to the left side so we don't propagate
rounding errors. Also use DIV_ROUND_CLOSEST because that's what the
spec says we need to do.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
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