drm/i915: update with_intel_runtime_pm to use the rpm structure
Matching the underlying get/put functions. Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Imre Deak <imre.deak@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190613232156.34940-8-daniele.ceraolospurio@intel.com
This commit is contained in:

committed by
Chris Wilson

parent
d858d5695f
commit
c447ff7db3
@@ -8167,7 +8167,7 @@ unsigned long i915_chipset_val(struct drm_i915_private *dev_priv)
|
||||
if (!IS_GEN(dev_priv, 5))
|
||||
return 0;
|
||||
|
||||
with_intel_runtime_pm(dev_priv, wakeref) {
|
||||
with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {
|
||||
spin_lock_irq(&mchdev_lock);
|
||||
val = __i915_chipset_val(dev_priv);
|
||||
spin_unlock_irq(&mchdev_lock);
|
||||
@@ -8253,7 +8253,7 @@ void i915_update_gfx_val(struct drm_i915_private *dev_priv)
|
||||
if (!IS_GEN(dev_priv, 5))
|
||||
return;
|
||||
|
||||
with_intel_runtime_pm(dev_priv, wakeref) {
|
||||
with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {
|
||||
spin_lock_irq(&mchdev_lock);
|
||||
__i915_update_gfx_val(dev_priv);
|
||||
spin_unlock_irq(&mchdev_lock);
|
||||
@@ -8305,7 +8305,7 @@ unsigned long i915_gfx_val(struct drm_i915_private *dev_priv)
|
||||
if (!IS_GEN(dev_priv, 5))
|
||||
return 0;
|
||||
|
||||
with_intel_runtime_pm(dev_priv, wakeref) {
|
||||
with_intel_runtime_pm(&dev_priv->runtime_pm, wakeref) {
|
||||
spin_lock_irq(&mchdev_lock);
|
||||
val = __i915_gfx_val(dev_priv);
|
||||
spin_unlock_irq(&mchdev_lock);
|
||||
@@ -8346,7 +8346,7 @@ unsigned long i915_read_mch_val(void)
|
||||
if (!i915)
|
||||
return 0;
|
||||
|
||||
with_intel_runtime_pm(i915, wakeref) {
|
||||
with_intel_runtime_pm(&i915->runtime_pm, wakeref) {
|
||||
spin_lock_irq(&mchdev_lock);
|
||||
chipset_val = __i915_chipset_val(i915);
|
||||
graphics_val = __i915_gfx_val(i915);
|
||||
|
Reference in New Issue
Block a user