mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
sched/wdog: Remove workaround for wdog latency.
This commit removed the workaround for wdog latency. Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
This commit is contained in:
parent
476e02c7e0
commit
164b075d3f
1 changed files with 2 additions and 10 deletions
|
|
@ -125,17 +125,9 @@ static inline_function void wd_expiration(clock_t ticks)
|
|||
* re-evaluate after updating current ticks if needed
|
||||
*/
|
||||
|
||||
bool expired = clock_compare(wdog->expired, ticks);
|
||||
|
||||
if (!expired)
|
||||
if (!clock_compare(wdog->expired, ticks))
|
||||
{
|
||||
ticks = clock_systime_ticks();
|
||||
expired = clock_compare(wdog->expired, ticks);
|
||||
|
||||
if (!expired)
|
||||
{
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
/* Remove the watchdog from the head of the list */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue