aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/power/wakeup.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-03-05 13:55:35 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2019-03-07 11:23:17 +0100
commit0996584b3026bed7f38abe02e8535e6a6c474118 (patch)
tree9fe33cd0609fab1a83532fd1e6c559b79d4fea8d /drivers/base/power/wakeup.c
parentPM-runtime: Consolidate code to get active/suspended time (diff)
downloadlinux-dev-0996584b3026bed7f38abe02e8535e6a6c474118.tar.xz
linux-dev-0996584b3026bed7f38abe02e8535e6a6c474118.zip
PM-runtime: Call pm_runtime_active|suspended_time() from sysfs
Avoid the open-coding of the accounted time acquisition in runtime_active|suspend_time_show() and make them call pm_runtime_active|suspended_time() instead. Note that this change also indirectly avoids holding dev->power.lock around the do_div() computation and the sprintf() call which is an additional improvement. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> [ rjw: Changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/wakeup.c')
0 files changed, 0 insertions, 0 deletions