Re: [PATCH] watchdog: Handle timer wrap around

2020-03-16 Thread Stefan Roese
On 24.02.20 01:20, Chris Packham wrote: 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.

Re: [PATCH] watchdog: Handle timer wrap around

2020-02-24 Thread Stefan Roese
On 24.02.20 01:20, Chris Packham wrote: 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.

[PATCH] watchdog: Handle timer wrap around

2020-02-23 Thread Chris Packham
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