diff options
author | 2018-09-11 05:47:25 +0800 | |
---|---|---|
committer | 2018-09-18 09:32:56 +0200 | |
commit | 7037b43e0076cce1c07c72540e219fb5db7ea01f (patch) | |
tree | fe6ad1caf17aa94e1bec2891da7423ff00581b52 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpuidle: Remove unnecessary wrapper cpuidle_get_last_residency() (diff) | |
download | linux-dev-7037b43e0076cce1c07c72540e219fb5db7ea01f.tar.xz linux-dev-7037b43e0076cce1c07c72540e219fb5db7ea01f.zip |
cpuidle: enter_state: Don't needlessly calculate diff time
Currently, ktime_us_delta() is invoked unconditionally to compute the
idle residency of the CPU, but it only makes sense to do that if a
valid idle state has been entered, so move the ktime_us_delta()
invocation after the entered_state >= 0 check.
While at it, merge two comment blocks in there into one and drop
a space between type casting of diff.
This patch has no functional changes.
Signed-off-by: Fieah Lim <kw@fieahl.im>
[ rjw: Changelog cleanup, comment format fix ]
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