Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fbadc58d authored by ShuoX Liu's avatar ShuoX Liu Committed by Rafael J. Wysocki
Browse files

PM / Runtime: Add new helper function: pm_runtime_active()



This boolean function simply returns whether or not the runtime
status of the device is 'active'. The typical scenario is driver
calls pm_runtime_get firstly, then check pm_runtime_active in
atomic environment.

Also add entry to Documentation/power/runtime.txt

Signed-off-by: default avatarYanmin Zhang <yanmin.zhang@intel.com>
Signed-off-by: default avatarShuoX Liu <shuox.liu@intel.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 43720bd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment