diff options
| author | Luca Coelho <[email protected]> | 2023-06-08 13:35:44 +0000 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2023-06-10 03:32:58 +0000 |
| commit | 8d208a5eed4890f52a33ce847cbb8f8a5b1be6a7 (patch) | |
| tree | 4ab512f3c3f0966e3ff9d1887f4d964e44cc8dd0 /drivers/gpu/drm/i915/intel_runtime_pm.c | |
| parent | drm/i915: re-enable -Wunused-but-set-variable (diff) | |
| download | kernel-8d208a5eed4890f52a33ce847cbb8f8a5b1be6a7.tar.gz kernel-8d208a5eed4890f52a33ce847cbb8f8a5b1be6a7.zip | |
drm/i915: use pointer to i915 instead of rpm in wakeref
Currently a pointer to an intel_runtime_pm structure is stored in the
wake reference structures so the runtime data can be accessed. We can
save the entire device information (drm_i915_private) instead, since
we'll need to reference the new workqueue we'll add in subsequent
patches.
Reviewed-by: Tvrtko Ursulin <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/ec0eb5149120d04f3d9870d7671ef10103e6fc29.1686231190.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_runtime_pm.c')
| -rw-r--r-- | drivers/gpu/drm/i915/intel_runtime_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c index cf5122299b6b..6d8e5e5c0cba 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c @@ -658,5 +658,5 @@ void intel_runtime_pm_init_early(struct intel_runtime_pm *rpm) init_intel_runtime_pm_wakeref(rpm); INIT_LIST_HEAD(&rpm->lmem_userfault_list); spin_lock_init(&rpm->lmem_userfault_lock); - intel_wakeref_auto_init(&rpm->userfault_wakeref, rpm); + intel_wakeref_auto_init(&rpm->userfault_wakeref, i915); } |
