1
0
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:
Ludwig Ortmann 2014-09-25 02:35:50 -07:00
commit 7b3f0c5b6a

View File

@ -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;
}