PM-runtime: Add new interface to get accounted time
authorVincent Guittot <vincent.guittot@linaro.org>
Fri, 21 Dec 2018 10:33:54 +0000 (11:33 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jan 2019 21:47:24 +0000 (22:47 +0100)
commit8a62ffe2753a845272f4f2100b5fca0b6053ff6f
tree31e2c8eaa9d740462dbe65845269b5db7dc9c027
parent1c7fc5cbc33980acd13d668f1c8f0313d6ae9fd8
PM-runtime: Add new interface to get accounted time

Some drivers (like i915/drm) needs to get the accounted suspended time.
pm_runtime_suspended_time() will return the suspended accounted time
in ns unit.

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c
include/linux/pm_runtime.h