diff options
author | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-10-30 20:40:12 +0300 |
---|---|---|
committer | Andrzej Hajda <andrzej.hajda@intel.com> | 2023-11-20 14:36:54 +0300 |
commit | b49e894c3fd83f67aae2a4778b98ea3838e41020 (patch) | |
tree | 44761e7054f280460a35a5cf8c911d01b38b9ccf /drivers/gpu/drm/i915/i915_driver.c | |
parent | dfed6b58d54f3a5d7e6bc1fb060e2c936330eba2 (diff) | |
download | linux-b49e894c3fd83f67aae2a4778b98ea3838e41020.tar.xz |
drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library
Beside reusing existing code, the main advantage of ref_tracker is
tracking per instance of wakeref. It allows also to catch double
put.
On the other side we lose information about the first acquire and
the last release, but the advantages outweigh it.
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231030-ref_tracker_i915-v1-1-006fe6b96421@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_driver.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_driver.c b/drivers/gpu/drm/i915/i915_driver.c index 802de2c6decb..db6f7c30adde 100644 --- a/drivers/gpu/drm/i915/i915_driver.c +++ b/drivers/gpu/drm/i915/i915_driver.c @@ -1037,7 +1037,7 @@ void i915_driver_shutdown(struct drm_i915_private *i915) intel_power_domains_driver_remove(i915); enable_rpm_wakeref_asserts(&i915->runtime_pm); - intel_runtime_pm_driver_release(&i915->runtime_pm); + intel_runtime_pm_driver_last_release(&i915->runtime_pm); } static bool suspend_to_idle(struct drm_i915_private *dev_priv) |