diff options
author | 2017-11-06 15:04:39 +0100 | |
---|---|---|
committer | 2017-11-08 13:33:40 +0900 | |
commit | 7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c (patch) | |
tree | c957c9e22e6370243956f0fa9016f9cf748b97e1 /net/nsh/nsh.c | |
parent | of: add of_property_read_variable_* dummy helpers (diff) | |
download | linux-rng-7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c.tar.xz linux-rng-7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c.zip |
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>
Diffstat (limited to 'net/nsh/nsh.c')
0 files changed, 0 insertions, 0 deletions