diff options
| author | Arnd Bergmann <[email protected]> | 2017-11-06 15:04:39 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-11-08 13:33:40 +0900 |
| commit | 7dfaa7bc99498da1c6c4a48bee8d2d5265161a8c (patch) | |
| tree | c957c9e22e6370243956f0fa9016f9cf748b97e1 /tools/perf/scripts/python/export-to-sqlite.py | |
| 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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions