diff options
author | 2015-06-12 10:04:12 +0800 | |
---|---|---|
committer | 2015-06-25 01:13:42 +0200 | |
commit | 9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9 (patch) | |
tree | ae0657008e5171227c211bf488f818ba92d161f7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rtc: isl1208: Replace deprecated rtc_tm_to_time() (diff) | |
download | linux-dev-9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9.tar.xz linux-dev-9033fd8ba7e96821e65fe3afc3f4077a8b66d1c9.zip |
rtc: sunxi: Replace deprecated rtc_tm_to_time()
sunxi_rtc_setalarm() uses deprecated rtc_tm_to_time(),
which will overflow in year 2106 on 32-bit machines.
This patch solves this by:
- Replacing rtc_tm_to_time() with rtc_tm_sub()
Also remove the unnecessary initial zeroing of some
local variables in sunxi_rtc_setalarm().
Cc: Carlo Caione <carlo.caione@gmail.com>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions