score: Fix EDF no-preempt thread handling

This commit is contained in:
Sebastian Huber
2016-06-23 09:04:25 +02:00
parent ec5d95e15e
commit 93f158f943

View File

@@ -53,7 +53,10 @@ Scheduler_Void_or_thread _Scheduler_EDF_Unblock(
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( priority < _Thread_Heir->current_priority ) {
_Scheduler_Update_heir( the_thread, priority == PRIORITY_PSEUDO_ISR );
_Scheduler_Update_heir(
the_thread,
priority == ( SCHEDULER_EDF_PRIO_MSB | PRIORITY_PSEUDO_ISR )
);
}
SCHEDULER_RETURN_VOID_OR_NULL;