Skip to content

Commit 82e279a

Browse files
committed
drm/xe: Introduce intel_runtime_pm_get_noresume at compat-i915-headers for display
The i915-display will start using the intel_runtime_pm_noresume. So we need to add the compat header before it. Reviewed-by: Francois Dugast <francois.dugast@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240417203952.25503-2-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent cbb6a74 commit 82e279a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,14 @@ static inline intel_wakeref_t intel_runtime_pm_get_if_in_use(struct xe_runtime_p
177177
return xe_pm_runtime_get_if_in_use(xe);
178178
}
179179

180+
static inline intel_wakeref_t intel_runtime_pm_get_noresume(struct xe_runtime_pm *pm)
181+
{
182+
struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);
183+
184+
xe_pm_runtime_get_noresume(xe);
185+
return true;
186+
}
187+
180188
static inline void intel_runtime_pm_put_unchecked(struct xe_runtime_pm *pm)
181189
{
182190
struct xe_device *xe = container_of(pm, struct xe_device, runtime_pm);

0 commit comments

Comments
 (0)