summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-01-22 17:08:32 -0200
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2014-01-22 17:08:32 -0200
commit9ce3aa5f0aa54a356c72f272a7ad37bf6742b04d (patch)
tree5fcdb22794a13e6d1b2873e481984714c0eea167
parent0880c145c5d1c4218293f29c586aacb9056c8fe0 (diff)
drm/i915: fix HDMI clock readout on Haswellruntime-pm-20140122
This stops the WARNs when booting with an HDMI monitor connected. We need a good explanation on why it fixes the problem now :) Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
-rw-r--r--drivers/gpu/drm/i915/intel_ddi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c
index fe2967eb14fb..cb6a65e156a3 100644
--- a/drivers/gpu/drm/i915/intel_ddi.c
+++ b/drivers/gpu/drm/i915/intel_ddi.c
@@ -663,7 +663,7 @@ static int intel_ddi_calc_wrpll_link(struct drm_i915_private *dev_priv,
p = (wrpll & WRPLL_DIVIDER_POST_MASK) >> WRPLL_DIVIDER_POST_SHIFT;
n = (wrpll & WRPLL_DIVIDER_FB_MASK) >> WRPLL_DIVIDER_FB_SHIFT;
- return (LC_FREQ * n) / (p * r);
+ return ((LC_FREQ * n) * 100) / (p * r);
}
static void intel_ddi_clock_get(struct intel_encoder *encoder,