You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/11/25 23:19:20 UTC

[GitHub] [mynewt-core] andrzej-kaczmarek opened a new pull request #2112: kernel/os: Fix sanity interval handling

andrzej-kaczmarek opened a new pull request #2112: kernel/os: Fix sanity interval handling
URL: https://github.com/apache/mynewt-core/pull/2112
 
 
   Previous check causes idle task to skip sanity check if wake up occured
   at the same tick when sanity should happen. This should not be a problem
   because iticks will be 0 and sanity check will be performed after wakeup
   on next tick. The only side effect should be wake up on 2 consecutive
   ticks. However...
   
   It is (unlikely but) possible that (at least) one tick occurs between
   check and entering critical section. If this happens on a tick where
   sanity check is skipped, time to next sanity is calculated as a negative
   value instead of 0 so depending on time to next sched/callout we may not
   wake up for sanity and tickle watchdog on time.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services