Commit 43694d69 authored by Paulo Zanoni's avatar Paulo Zanoni Committed by Daniel Vetter

drm/i915: get runtime PM references when the GPU is idle/busy

... instead of PC8 references. Now that both are the same thing and we
are killing PC8, just get the runtime PM reference.
Reviewed-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ba0239e0
...@@ -8409,7 +8409,7 @@ void intel_mark_busy(struct drm_device *dev) ...@@ -8409,7 +8409,7 @@ void intel_mark_busy(struct drm_device *dev)
if (dev_priv->mm.busy) if (dev_priv->mm.busy)
return; return;
hsw_disable_package_c8(dev_priv); intel_runtime_pm_get(dev_priv);
i915_update_gfx_val(dev_priv); i915_update_gfx_val(dev_priv);
dev_priv->mm.busy = true; dev_priv->mm.busy = true;
} }
...@@ -8438,7 +8438,7 @@ void intel_mark_idle(struct drm_device *dev) ...@@ -8438,7 +8438,7 @@ void intel_mark_idle(struct drm_device *dev)
gen6_rps_idle(dev->dev_private); gen6_rps_idle(dev->dev_private);
out: out:
hsw_enable_package_c8(dev_priv); intel_runtime_pm_put(dev_priv);
} }
void intel_mark_fb_busy(struct drm_i915_gem_object *obj, void intel_mark_fb_busy(struct drm_i915_gem_object *obj,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment