diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-11-10 16:37:13 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-05 02:32:52 +0100 |
commit | 0e9680fa13a084aa3dd8f9f2babdee28c12ec9dd (patch) | |
tree | 25c3765678b3c2f691ba8bb2d372fed4b41532f3 /drivers/hv/hv_util.c | |
parent | scsi: bfa: document overflow of io_profile_start_time (diff) | |
download | linux-0e9680fa13a084aa3dd8f9f2babdee28c12ec9dd.tar.xz linux-0e9680fa13a084aa3dd8f9f2babdee28c12ec9dd.zip |
scsi: bfa: replace bfa_get_log_time() with ktime_get_real_seconds()
The bfa_get_log_time() returns a 64-bit timestamp that does not suffer
from the y2038 overflow on 64-bit systems. However, on 32-bit
architectures the timestamp will jump from 0x000000007fffffff to
0xffffffff80000000 in y2038 and produce wrong results.
The ktime_get_real_seconds() function does the same thing as
bfa_get_log_time() without that problem, so we can simply remove the
former use ktime_get_real_seconds() instead.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Anil Gurumurthy <Anil.Gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/hv/hv_util.c')
0 files changed, 0 insertions, 0 deletions