]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: megaraid: use ktime_get_real for firmware time
authorArnd Bergmann <arnd@arndb.de>
Wed, 17 Jan 2018 14:48:51 +0000 (15:48 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 23 Jan 2018 01:03:57 +0000 (20:03 -0500)
commitb45093dd76bed88ac72330c08338ea329c94d20c
treec8579fe778573906b183376265e9399603f6e2b1
parent22807aa812a65a7b859187e0fc6cfa0802a858c4
scsi: megaraid: use ktime_get_real for firmware time

do_gettimeofday() overflows in 2038 on 32-bit architectures and is
deprecated, so convert this driver to call ktime_get_real()
directly. This also simplifies the calculation.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sumit Saxena <sumit.saxena@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/megaraid/megaraid_sas_fusion.c