Commit 7e095a4c authored by Nirmoy Das's avatar Nirmoy Das Committed by Rodrigo Vivi

drm/i915: Update docs in intel_wakeref.h

Fix docs for __intel_wakeref_put() and intel_wakeref_get() to
reflect current behaviour.
Signed-off-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Reviewed-by: default avatarAshutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230105203843.30663-1-nirmoy.das@intel.com
parent 157821fb
...@@ -68,11 +68,12 @@ void __intel_wakeref_put_last(struct intel_wakeref *wf, unsigned long flags); ...@@ -68,11 +68,12 @@ void __intel_wakeref_put_last(struct intel_wakeref *wf, unsigned long flags);
* @wf: the wakeref * @wf: the wakeref
* *
* Acquire a hold on the wakeref. The first user to do so, will acquire * Acquire a hold on the wakeref. The first user to do so, will acquire
* the runtime pm wakeref and then call the @fn underneath the wakeref * the runtime pm wakeref and then call the intel_wakeref_ops->get()
* mutex. * underneath the wakeref mutex.
* *
* Note that @fn is allowed to fail, in which case the runtime-pm wakeref * Note that intel_wakeref_ops->get() is allowed to fail, in which case
* will be released and the acquisition unwound, and an error reported. * the runtime-pm wakeref will be released and the acquisition unwound,
* and an error reported.
* *
* Returns: 0 if the wakeref was acquired successfully, or a negative error * Returns: 0 if the wakeref was acquired successfully, or a negative error
* code otherwise. * code otherwise.
...@@ -130,19 +131,17 @@ intel_wakeref_might_get(struct intel_wakeref *wf) ...@@ -130,19 +131,17 @@ intel_wakeref_might_get(struct intel_wakeref *wf)
} }
/** /**
* intel_wakeref_put_flags: Release the wakeref * __intel_wakeref_put: Release the wakeref
* @wf: the wakeref * @wf: the wakeref
* @flags: control flags * @flags: control flags
* *
* Release our hold on the wakeref. When there are no more users, * Release our hold on the wakeref. When there are no more users,
* the runtime pm wakeref will be released after the @fn callback is called * the runtime pm wakeref will be released after the intel_wakeref_ops->put()
* underneath the wakeref mutex. * callback is called underneath the wakeref mutex.
* *
* Note that @fn is allowed to fail, in which case the runtime-pm wakeref * Note that intel_wakeref_ops->put() is allowed to fail, in which case the
* is retained and an error reported. * runtime-pm wakeref is retained.
* *
* Returns: 0 if the wakeref was released successfully, or a negative error
* code otherwise.
*/ */
static inline void static inline void
__intel_wakeref_put(struct intel_wakeref *wf, unsigned long flags) __intel_wakeref_put(struct intel_wakeref *wf, unsigned long flags)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment