mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #1693 from Kijewski/sched_switch-only-if-higher
core: sched_switch only switch for higher priority
This commit is contained in:
commit
7b3f0c5b6a
@ -158,7 +158,7 @@ void sched_switch(uint16_t other_prio)
|
||||
|
||||
DEBUG("%s: %" PRIu16 " %" PRIu16 " %i\n", sched_active_thread->name, current_prio, other_prio, in_isr);
|
||||
|
||||
if (current_prio >= other_prio) {
|
||||
if (current_prio > other_prio) {
|
||||
if (in_isr) {
|
||||
sched_context_switch_request = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user