commit | 7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c | [log] [tgz] |
---|---|---|
author | Arnd Bergmann <arnd@arndb.de> | Mon Nov 06 15:04:39 2017 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Nov 08 13:33:40 2017 +0900 |
tree | c957c9e22e6370243956f0fa9016f9cf748b97e1 | |
parent | 96c623e51f1c40bf524decc48c6fac7ce5dd41f7 [diff] |
bnxt: fix bnxt_hwrm_fw_set_time for y2038 On 32-bit architectures, rtc_time_to_tm() returns incorrect results in 2038 or later, and do_gettimeofday() is broken for the same reason. This changes the code to use ktime_get_real_seconds() and time64_to_tm() instead, both of them are 2038-safe, and we can also get rid of the CONFIG_RTC_LIB dependency that way. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>