Re: [PATCH 2/3] scsi: 3ware: use 64-bit times for FW time sync

From: Martin K. Petersen
Date: Mon Nov 20 2017 - 22:07:08 EST



Arnd,

> The calculation of the number of seconds since Sunday 00:00:00
> overflows in 2106, meaning that we instead will return the seconds
> since Wednesday 06:28:16 afterwards.
>
> Using 64-bit time stamps avoids this slight inconsistency, and the
> deprecated do_gettimeofday(), replacing it with the simpler
> ktime_get_real_seconds().

Applied to 4.16/scsi-queue.

--
Martin K. Petersen Oracle Linux Engineering