aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyuw@linux.intel.com>2009-09-03 09:30:06 +0800
committerEric Anholt <eric@anholt.net>2009-09-04 13:05:46 -0700
commit5e17ee74b541b56b5d4cfab6502a5116f224e32c (patch)
treecb2fa20f848480f172d034ffb7816266347222c6 /drivers/gpu/drm/i915/intel_display.c
parent57cdaf90f5f607eb029356074fefb66c9b1c0659 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-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 d7c7fa48987..9aa1d2de8a8 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);