drm/i915: Turn on 945 self-refresh only if single CRTC is active
authorLi Peng <peng.li@linux.intel.com>
Sat, 12 Jun 2010 15:38:35 +0000 (23:38 +0800)
committerEric Anholt <eric@anholt.net>
Tue, 15 Jun 2010 01:24:13 +0000 (18:24 -0700)
commit45ac22c81b1088f5ac08dc5367f78c192d68d756
tree9e9f161b881715db58bf38fbebfde9990fde4819
parentc496fa1fff0248ef8cd637efb52b70dea7afaa9d
drm/i915: Turn on 945 self-refresh only if single CRTC is active

Enable self-refresh on 945 when just one CRTC is activated.
Otherwise user would get display flicker with dual display.

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=27667

Signed-off-by: Li Peng <peng.li@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c