summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2009-09-03 05:30:06 +0400
committerEric Anholt <eric@anholt.net>2009-09-05 00:05:46 +0400
commit5e17ee74b541b56b5d4cfab6502a5116f224e32c (patch)
treecb2fa20f848480f172d034ffb7816266347222c6
parent57cdaf90f5f607eb029356074fefb66c9b1c0659 (diff)
downloadlinux-5e17ee74b541b56b5d4cfab6502a5116f224e32c.tar.xz
drm/i915: do dynamic clock freq control only in kernel modesetting
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com> Signed-off-by: Eric Anholt <eric@anholt.net>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d7c7fa489872..9aa1d2de8a84 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3472,6 +3472,9 @@ void intel_mark_busy(struct drm_device *dev, struct drm_gem_object *obj)
struct intel_framebuffer *intel_fb;
struct intel_crtc *intel_crtc;
+ if (!drm_core_check_feature(dev, DRIVER_MODESET))
+ return;
+
dev_priv->busy = true;
intel_increase_renderclock(dev, true);