From: Imre Deak Date: Thu, 27 Mar 2014 15:45:10 +0000 (+0200) Subject: drm/i915: vlv: cache current CD clock rate X-Git-Tag: omap-for-v3.16/fixes-against-rc1~44^2~63^2~104 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d60c4473b6f54876cb7e6bdb7fefee8ccb0d626f;p=pandora-kernel.git drm/i915: vlv: cache current CD clock rate Instead of reading out the CD clock rate from the HW at each modeset, do this only during driver init and resume and use the cached value during modeset. This moves things towards a state where the sw and hw side setup is separated. It's also needed for VLV RPM, where we don't put device into D0 state until modeset_global_resources is called and thus can't access any display/gfx registers. Signed-off-by: Imre Deak Reviewed-by: Antti Koskipää Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed