Chris Packham
6d8eae9ab7
watchdog: Handle timer wrap around
...
On some platforms/architectures the value from get_timer() can wrap.
This is particularly problematic when long-running code needs to measure
a time difference as is the case with watchdog_reset() which tries to
avoid tickling the watchdog too frequently.
Use time_after() from time.h instead of a plain > comparison to avoid
any issues with the time wrapping on a system that has been sitting in
u-boot for a long time.
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
2020-03-16 11:25:12 +01:00
..
2020-02-05 19:33:46 -07:00
2020-02-25 10:16:05 +05:30
2020-02-05 19:33:46 -07:00
2019-08-09 22:24:02 +08:00
2020-02-05 19:33:46 -07:00
2020-01-07 11:13:24 -05:00
2020-01-10 10:25:13 -05:00
2020-01-24 23:06:49 +05:30
2020-03-05 18:19:40 +08:00
2020-03-02 19:47:38 -07:00
2019-12-02 18:23:09 -05:00
2020-01-25 12:04:36 -05:00
2020-02-11 10:58:41 -05:00
2020-02-05 19:33:46 -07:00
2020-02-19 21:27:30 +08:00
2020-01-25 12:04:36 -05:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-02-11 10:58:41 -05:00
2020-02-05 19:33:46 -07:00
2020-02-18 08:16:45 +01:00
2019-11-19 17:43:04 -05:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-02-26 18:35:29 +05:30
2020-03-09 08:33:16 +08:00
2020-02-28 12:04:10 +01:00
2020-03-09 18:11:25 -05:00
2020-02-05 19:33:46 -07:00
2019-12-15 11:44:16 +08:00
2020-02-05 19:33:46 -07:00
2019-08-07 15:31:04 -04:00
2020-02-05 19:33:46 -07:00
2020-02-13 18:47:00 +01:00
2020-03-10 16:29:38 -04:00
2019-12-06 00:06:23 +08:00
2019-12-02 18:23:08 -05:00
2020-02-13 10:10:50 -05:00
2020-02-05 19:33:46 -07:00
2020-02-11 10:58:41 -05:00
2020-03-11 08:29:58 +01:00
2020-03-01 22:07:32 +01:00
2019-10-23 20:47:12 -04:00
2020-03-13 09:29:50 -04:00
2020-02-05 19:33:46 -07:00
2020-02-19 21:27:30 +08:00
2020-02-05 19:33:46 -07:00
2020-02-05 21:48:22 -07:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-01-20 10:10:28 +05:30
2020-02-05 19:33:46 -07:00
2020-02-11 10:58:41 -05:00
2020-02-19 21:27:30 +08:00
2020-03-01 21:58:54 +01:00
2020-03-02 19:47:38 -07:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-02-05 19:33:46 -07:00
2020-03-16 11:25:12 +01:00
2020-01-07 18:08:21 +01:00
2020-01-15 19:50:27 -05:00