From: Imre Deak Date: Tue, 1 Jul 2014 09:36:17 +0000 (+0300) Subject: drm/i915: gmch: factor out intel_set_memory_cxsr X-Git-Tag: omap-for-v3.17/fixes-against-rc2~125^2~49^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5209b1f4c4f8036f52f5ac2df2afc806254f247f;p=pandora-kernel.git drm/i915: gmch: factor out intel_set_memory_cxsr This functionality will be also needed by an upcoming patch, so factor it out. As a bonus this also makes things a bit more uniform across platforms. Note that this also changes the register read-modify-write to a simple write during disabling. This is what we do during enabling anyway and according to the spec all the relevant bits are reserved-MBZ or reserved with a 0 default value. v2: - unchanged v3: - fix missing cxsr disabling on pineview (Deepak) Signed-off-by: Imre Deak Reviewed-by: Deepak S Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed