diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-06-18 18:28:23 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-06-26 19:00:27 +0300 |
commit | c4d6204dc1742581c0450d2ff6a058f61ea4f4ce (patch) | |
tree | f8bc84056c7d3c0530a0d899a434ed4a161ff064 /drivers/perf/Kconfig | |
parent | fe7f4e5d11541402f54ebd777a4f49caee891401 (diff) | |
download | linux-c4d6204dc1742581c0450d2ff6a058f61ea4f4ce.tar.xz |
scsi: lpfc: use monotonic timestamps for statistics
The get_seconds() function suffers from a possible overflow in 2038 or
2106, as well as jitter due to settimeofday or leap second updates, and is
deprecated.
As we are interested in elapsed time only, using ktime_get_seconds() to
read the CLOCK_MONOTONIC timebase is ideal here. This also lets us remove
the hack that tries to deal with get_seconds() going slightly backwards,
which cannot happen with montonic timestamps.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/perf/Kconfig')
0 files changed, 0 insertions, 0 deletions