Skip to content

Commit 2c41233

Browse files
AlanSternrafaeljw
authored andcommitted
PM: runtime: Add documentation for pm_runtime_resume_and_get()
Commit dd8088d ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") added a new runtime-PM API function without updating the documentation in runtime_pm.rst. Add the missing documentation. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Fixes: dd8088d ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 953c1fd commit 2c41233

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Documentation/power/runtime_pm.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ drivers/base/power/runtime.c and include/linux/pm_runtime.h:
339339
checked additionally, and -EACCES means that 'power.disable_depth' is
340340
different from 0
341341

342+
`int pm_runtime_resume_and_get(struct device *dev);`
343+
- run pm_runtime_resume(dev) and if successful, increment the device's
344+
usage counter; return the result of pm_runtime_resume
345+
342346
`int pm_request_idle(struct device *dev);`
343347
- submit a request to execute the subsystem-level idle callback for the
344348
device (the request is represented by a work item in pm_wq); returns 0 on

0 commit comments

Comments
 (0)