Skip to content
Snippets Groups Projects
Commit 001fdc52 authored by Martine Lenders's avatar Martine Lenders
Browse files

Merge pull request #3998 from gebart/pr/xtimer-long-term-fast-cpu-bug

sys/xtimer: Avoid race incrementing multiple periods in _timer_callback
parents d2a02ea5 b365ab45
No related branches found
No related tags found
No related merge requests found
......@@ -499,7 +499,7 @@ overflow:
/* check if the end of this period is very soon */
if (_mask(now + XTIMER_ISR_BACKOFF) < now) {
/* spin until next period, then advance */
while (_xtimer_now() > now);
while (_xtimer_now() >= now);
_next_period();
reference = 0;
goto overflow;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment