diff options
| author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2024-05-22 13:01:00 -0400 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2024-05-23 11:52:56 -0400 |
| commit | 967c5d7c64e207c9cb1b99ff3d2aec95e3316af7 (patch) | |
| tree | add017b424110330879de606fad5c59fff019387 /drivers/gpu | |
| parent | 46edb0a3eb16cebc2db6f9b6f7c19813d52bfcc9 (diff) | |
drm/xe: Fix xe_pm_runtime_get_if_in_use documentation
Let's be clear on what it is actually doing and align with
xe_pm_runtime_get_if_active doc style.
Tested-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522170105.327472-2-rodrigo.vivi@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_pm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c index d14741f35cc4..c3ef2283770f 100644 --- a/drivers/gpu/drm/xe/xe_pm.c +++ b/drivers/gpu/drm/xe/xe_pm.c @@ -514,10 +514,11 @@ bool xe_pm_runtime_get_if_active(struct xe_device *xe) } /** - * xe_pm_runtime_get_if_in_use - Get a runtime_pm reference and resume if needed + * xe_pm_runtime_get_if_in_use - Get a new reference if device is active with previous ref taken * @xe: xe device instance * - * Returns: True if device is awake and the reference was taken, false otherwise. + * Return: True if device is awake, a previous reference had been already taken, + * and a new reference was now taken, false otherwise. */ bool xe_pm_runtime_get_if_in_use(struct xe_device *xe) { |
