[Intel-gfx] [PATCH v4 5/7] drm/i915: check that we hold an RPM wakelock ref before we put it
Imre Deak
imre.deak at intel.com
Fri Nov 13 05:52:57 PST 2015
v2-v3:
- unchanged
v4:
- keep the corresponding check in the get helper (Chris)
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
drivers/gpu/drm/i915/intel_runtime_pm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 02b390e..44b0575 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -2185,6 +2185,7 @@ void intel_runtime_pm_put(struct drm_i915_private *dev_priv)
struct drm_device *dev = dev_priv->dev;
struct device *device = &dev->pdev->dev;
+ assert_rpm_wakelock_held(dev_priv);
atomic_dec(&dev_priv->pm.wakelock_count);
pm_runtime_mark_last_busy(device);
--
2.5.0
More information about the Intel-gfx
mailing list