summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
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
parent57cdaf90f5f607eb029356074fefb66c9b1c0659 (diff)
downloadop-kernel-dev-5e17ee74b541b56b5d4cfab6502a5116f224e32c.zip
op-kernel-dev-5e17ee74b541b56b5d4cfab6502a5116f224e32c.tar.gz
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')
-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 d7c7fa4..9aa1d2d 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);
OpenPOWER on IntegriCloud