]> git.baikalelectronics.ru Git - kernel.git/commit
PM-runtime: Consolidate code to get active/suspended time
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 5 Mar 2019 12:55:26 +0000 (13:55 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 7 Mar 2019 10:23:17 +0000 (11:23 +0100)
commit6979400293f586a727a18b868222e427768602ba
tree255e77fb9ad72b3112e447b72b64c7b71b999fd0
parente35b8dbae826e16b1f7c285dc1cc52b770b11319
PM-runtime: Consolidate code to get active/suspended time

In a step to consolidate the code for fetching the PM-runtime
active/suspended time for a device, add a common function for that
and make the existing pm_runtime_suspended_time() call it.

Also add a corresponding pm_runtime_active_time() calling the new
common function.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[ rjw: Changelog, function rename ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/power.h
drivers/base/power/runtime.c