drm/i915: get runtime PM references when the GPU is idle/busy
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 7 Mar 2014 23:08:08 +0000 (20:08 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 19 Mar 2014 15:38:54 +0000 (16:38 +0100)
... instead of PC8 references. Now that both are the same thing and we
are killing PC8, just get the runtime PM reference.

Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c

index f7dc5eec6d565e628484e182c5fd8a68ddd67cb5..a61efbfc81af5b1f105d99ccb7849431740b936a 100644 (file)
@@ -8409,7 +8409,7 @@ void intel_mark_busy(struct drm_device *dev)
        if (dev_priv->mm.busy)
                return;
 
-       hsw_disable_package_c8(dev_priv);
+       intel_runtime_pm_get(dev_priv);
        i915_update_gfx_val(dev_priv);
        dev_priv->mm.busy = true;
 }
@@ -8438,7 +8438,7 @@ void intel_mark_idle(struct drm_device *dev)
                gen6_rps_idle(dev->dev_private);
 
 out:
-       hsw_enable_package_c8(dev_priv);
+       intel_runtime_pm_put(dev_priv);
 }
 
 void intel_mark_fb_busy(struct drm_i915_gem_object *obj,