aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorNick Crews <[email protected]>2019-10-04 08:26:08 -0600
committerAlexandre Belloni <[email protected]>2019-10-14 17:49:17 +0200
commit9aa0d0be3856749c3be08089fe12a1f4494a030b (patch)
tree617da4fb8a41edf387b1774620ca9dc945d12e9e /tools/perf/scripts/python/bin
parent147dae76dbb9b20ba48385911c6fc04bf038a64a (diff)
rtc: wilco-ec: Handle reading invalid times
If the RTC HW returns an invalid time, the rtc_year_days() call would crash. This patch adds error logging in this situation, and removes the tm_yday and tm_wday calculations. These fields should not be relied upon by userspace according to man rtc, and thus we don't need to calculate them. Signed-off-by: Nick Crews <[email protected]> Reviewed-by: Daniel Campello <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions