]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/i915: do dynamic clock freq control only in kernel modesetting
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 3 Sep 2009 01:30:06 +0000 (09:30 +0800)
committerEric Anholt <eric@anholt.net>
Fri, 4 Sep 2009 20:05:46 +0000 (13:05 -0700)
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c

index d7c7fa489872511426888ef019ff2ae1b09c1e40..9aa1d2de8a84b5f402fb17f715bec617ae2668ee 100644 (file)
@@ -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);