xtimer/xtimer.c: sched_switch instead of yield
because of pr #11759: not all boards check for is_in_irq when thread_yield_higher
This commit is contained in:
parent
1bcb4fcc5f
commit
c1f58186cb
@ -261,7 +261,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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user