Skip to content

Commit

Permalink
xtimer/xtimer.c: sched_switch instead of yield
Browse files Browse the repository at this point in the history
because of pr RIOT-OS#11759: not all boards check for is_in_irq when thread_yield_higher
  • Loading branch information
JulianHolzwarth authored and olegart committed Sep 6, 2019
1 parent 28d9025 commit 1fea95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/xtimer/xtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ static void _mutex_timeout(void *arg)
}
sched_set_status(mt->thread, STATUS_PENDING);
irq_restore(irqstate);
thread_yield_higher();
sched_switch(mt->thread->priority);
return;
}
irq_restore(irqstate);
Expand Down

0 comments on commit 1fea95d

Please sign in to comment.