diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-10 16:37:10 +0100 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2017-12-04 20:32:52 -0500 |
| commit | 8f604a036bce849a3410f4940fa09e8eb2760bbf (patch) | |
| tree | 937b81c943600970d8b39513a2ed414787c9153e /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7e75f6077074a7ce2c62092acbad0665ba88485d (diff) | |
scsi: bfa: use proper time accessor for stats_reset_time
We use the deprecated do_gettimeofday() function to read the current
time when resetting the statistics in both bfa_port and bfa_svc. This
works fine because overflow is handled correctly, but we want to get rid
of do_gettimeofday() and using a non-monotonic time suffers from
concurrent settimeofday calls and other problems.
This uses the ktime_get_seconds() function instead, which does what we
need here.
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Anil Gurumurthy <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions