drm/i915: put runtime PM only at the end of intel_mark_idle
[deliverable/linux.git] / drivers / gpu / drm / i915 / intel_display.c
index ef26312e98dd7a437e05e0879770669dc8a7eb7c..82ef8bf6243c2e4d5c9006d7455333ab55f3df8d 100644 (file)
@@ -8215,10 +8215,8 @@ void intel_mark_idle(struct drm_device *dev)
 
        dev_priv->mm.busy = false;
 
-       hsw_package_c8_gpu_idle(dev_priv);
-
        if (!i915.powersave)
-               return;
+               goto out;
 
        list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
                if (!crtc->fb)
@@ -8229,6 +8227,9 @@ void intel_mark_idle(struct drm_device *dev)
 
        if (INTEL_INFO(dev)->gen >= 6)
                gen6_rps_idle(dev->dev_private);
+
+out:
+       hsw_package_c8_gpu_idle(dev_priv);
 }
 
 void intel_mark_fb_busy(struct drm_i915_gem_object *obj,
This page took 0.026102 seconds and 5 git commands to generate.