From: Jesse Barnes Date: Thu, 16 Jul 2009 20:01:02 +0000 (-0700) Subject: drm/i915: correct self-refresh calculation in "everything off" case X-Git-Tag: v2.6.31-rc6~37^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a2430f4542467502d39660bfd66b0004fd8d6a9;p=pandora-kernel.git drm/i915: correct self-refresh calculation in "everything off" case If no planes are enabled, the self-refresh calculation may end up doing a divide by zero. This patch should prevent that by making sure at least one of the CRTCs had a valid hdisplay value. Reported-by: Eric Anholt Tested-by: Eric Anholt Signed-off-by: Jesse Barnes Signed-off-by: Eric Anholt --- Reading git-diff-tree failed