]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: correct self-refresh calculation in "everything off" case
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 16 Jul 2009 20:01:02 +0000 (13:01 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 Jul 2009 20:02:40 +0000 (13:02 -0700)
commit860f38642afb6decda5d6db5cfa2a6ccfd1c6a54
tree8ff5a492835af7460bc0dd713e7b84b6dacdcd86
parent084e838c719da8e6b4305bc2534e6a490fd14d05
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 <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c