diff options
Diffstat (limited to 'cpukit/score/src/schedulerpriorityunblock.c')
-rw-r--r-- | cpukit/score/src/schedulerpriorityunblock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/schedulerpriorityunblock.c b/cpukit/score/src/schedulerpriorityunblock.c index 06d29f3b91..a912ebfbe2 100644 --- a/cpukit/score/src/schedulerpriorityunblock.c +++ b/cpukit/score/src/schedulerpriorityunblock.c @@ -52,10 +52,10 @@ Scheduler_Void_or_thread _Scheduler_priority_Unblock ( * a pseudo-ISR system task, we need to do a context switch. */ if ( the_thread->current_priority < _Thread_Heir->current_priority ) { - _Thread_Heir = the_thread; - if ( _Thread_Executing->is_preemptible || - the_thread->current_priority == 0 ) - _Thread_Dispatch_necessary = true; + _Scheduler_Update_heir( + the_thread, + the_thread->current_priority == PRIORITY_PSEUDO_ISR + ); } SCHEDULER_RETURN_VOID_OR_NULL; |