summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@virtuousgeek.org>2014-06-18 09:52:56 -0700
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-06-19 18:05:30 +0200
commit395a5abbd97d7d76a7a26da52f33daebe279b3b3 (patch)
tree02bae8cefc89ca4626eb4df64cbe6696b029f112 /drivers/gpu/drm/i915/i915_drv.c
parente11aa362308f5de467ce355a2a2471321b15a35c (diff)
drm/i915: don't take runtime PM reference around freeze/thaw
We should be taking the right power well refs these days, so this shouldn't be necessary. It also gets in the way of re-using these routines for S0iX states, as those need all the power saving features enabled. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.c')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.c b/drivers/gpu/drm/i915/i915_drv.c
index be977414842..6eb45ac7a7d 100644
--- a/drivers/gpu/drm/i915/i915_drv.c
+++ b/drivers/gpu/drm/i915/i915_drv.c
@@ -496,8 +496,6 @@ static int i915_drm_freeze(struct drm_device *dev)
struct drm_crtc *crtc;
pci_power_t opregion_target_state;
- intel_runtime_pm_get(dev_priv);
-
/* ignore lid events during suspend */
mutex_lock(&dev_priv->modeset_restore_lock);
dev_priv->modeset_restore = MODESET_SUSPENDED;
@@ -686,7 +684,6 @@ static int __i915_drm_thaw(struct drm_device *dev, bool restore_gtt_mappings)
intel_opregion_notify_adapter(dev, PCI_D0);
- intel_runtime_pm_put(dev_priv);
return 0;
}