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>
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 @@
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);