aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_pm.c
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2014-03-07 18:08:15 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-19 11:39:46 -0400
commit5d584b2eca96543568a8db8eba008f2dab784367 (patch)
tree4d52d0fb4bd986112faeeda285d33362a3e2d5b8 /drivers/gpu/drm/i915/intel_pm.c
parent7c8615d8f9faf7a33ad528a012e097631599207f (diff)
drm/i915: move pc8.irqs_disabled to pm.irqs_disabled
When other platforms add runtime PM support they will also need to disable interrupts, so move the variable to the runtime PM struct. Also notice that the longer-term goal is to completely kill the regsave struct, and I even have patches for that. v2: - Rebase. v3: - Rebase. 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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_pm.c')
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index ddd0368460ae..fcca82cd9695 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -6158,7 +6158,8 @@ void intel_pm_setup(struct drm_device *dev)
6158 mutex_init(&dev_priv->rps.hw_lock); 6158 mutex_init(&dev_priv->rps.hw_lock);
6159 6159
6160 mutex_init(&dev_priv->pc8.lock); 6160 mutex_init(&dev_priv->pc8.lock);
6161 dev_priv->pc8.irqs_disabled = false;
6162 INIT_DELAYED_WORK(&dev_priv->rps.delayed_resume_work, 6161 INIT_DELAYED_WORK(&dev_priv->rps.delayed_resume_work,
6163 intel_gen6_powersave_work); 6162 intel_gen6_powersave_work);
6163
6164 dev_priv->pm.irqs_disabled = false;
6164} 6165}