drm/i915: Calculate IPS linetime watermark based on future cdclk
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 29 Apr 2016 14:31:17 +0000 (17:31 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 9 May 2016 16:14:11 +0000 (19:14 +0300)
commit532f7a7f8daab388358f6d00dfad1d98b27d409e
tree4acaab5b9c0a53f0b5cb50bd298139e7b3a7fbcd
parentc033666a94b576185c4b5055f20536e13fada960
drm/i915: Calculate IPS linetime watermark based on future cdclk

Use the cdclk we're going to be using when the pipe gets enabled to
compute the IPS linetime watermark. The current cdclk frequency is
irrelevant at this point since it can still change.

Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461940278-17122-1-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/i915/intel_pm.c