diff options
author | 2019-02-04 17:25:53 +0100 | |
---|---|---|
committer | 2019-02-05 12:04:39 +0100 | |
commit | fed7e88c0702e30fcd55563ca6eecd548a5d13af (patch) | |
tree | fdf48e512e455ef7655c3632879befb400768f0c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PM-runtime: Switch accounting over to ktime_get_mono_fast_ns() (diff) | |
download | wireguard-linux-fed7e88c0702e30fcd55563ca6eecd548a5d13af.tar.xz wireguard-linux-fed7e88c0702e30fcd55563ca6eecd548a5d13af.zip |
PM-runtime: update time accounting only when enabled
Update the accounting_timestamp field only when PM runtime is enabled
and don't forget to account the last state before disabling it.
Suggested-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
[ rjw: Minor cleanups ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions