diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
| -rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index ac513fd70315..a1e4e1033289 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h | |||
| @@ -29,6 +29,7 @@ | |||
| 29 | #include <linux/i2c.h> | 29 | #include <linux/i2c.h> |
| 30 | #include <linux/hdmi.h> | 30 | #include <linux/hdmi.h> |
| 31 | #include <linux/sched/clock.h> | 31 | #include <linux/sched/clock.h> |
| 32 | #include <linux/stackdepot.h> | ||
| 32 | #include <drm/i915_drm.h> | 33 | #include <drm/i915_drm.h> |
| 33 | #include "i915_drv.h" | 34 | #include "i915_drv.h" |
| 34 | #include <drm/drm_crtc.h> | 35 | #include <drm/drm_crtc.h> |
| @@ -2182,10 +2183,16 @@ enable_rpm_wakeref_asserts(struct drm_i915_private *i915) | |||
| 2182 | atomic_dec(&i915->runtime_pm.wakeref_count); | 2183 | atomic_dec(&i915->runtime_pm.wakeref_count); |
| 2183 | } | 2184 | } |
| 2184 | 2185 | ||
| 2185 | void intel_runtime_pm_get(struct drm_i915_private *i915); | 2186 | intel_wakeref_t intel_runtime_pm_get(struct drm_i915_private *i915); |
| 2186 | bool intel_runtime_pm_get_if_in_use(struct drm_i915_private *i915); | 2187 | intel_wakeref_t intel_runtime_pm_get_if_in_use(struct drm_i915_private *i915); |
| 2187 | void intel_runtime_pm_get_noresume(struct drm_i915_private *i915); | 2188 | intel_wakeref_t intel_runtime_pm_get_noresume(struct drm_i915_private *i915); |
| 2188 | void intel_runtime_pm_put(struct drm_i915_private *i915); | 2189 | |
| 2190 | void intel_runtime_pm_put_unchecked(struct drm_i915_private *i915); | ||
| 2191 | #if IS_ENABLED(CONFIG_DRM_I915_DEBUG_RUNTIME_PM) | ||
| 2192 | void intel_runtime_pm_put(struct drm_i915_private *i915, intel_wakeref_t wref); | ||
| 2193 | #else | ||
| 2194 | #define intel_runtime_pm_put(i915, wref) intel_runtime_pm_put_unchecked(i915) | ||
| 2195 | #endif | ||
| 2189 | 2196 | ||
| 2190 | #if IS_ENABLED(CONFIG_DRM_I915_DEBUG_RUNTIME_PM) | 2197 | #if IS_ENABLED(CONFIG_DRM_I915_DEBUG_RUNTIME_PM) |
| 2191 | void print_intel_runtime_pm_wakeref(struct drm_i915_private *i915, | 2198 | void print_intel_runtime_pm_wakeref(struct drm_i915_private *i915, |
