summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimpleunblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimpleunblock.c')
-rw-r--r--cpukit/score/src/schedulersimpleunblock.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/schedulersimpleunblock.c b/cpukit/score/src/schedulersimpleunblock.c
index 6f9b2f719f..a020f74767 100644
--- a/cpukit/score/src/schedulersimpleunblock.c
+++ b/cpukit/score/src/schedulersimpleunblock.c
@@ -44,10 +44,10 @@ Scheduler_Void_or_thread _Scheduler_simple_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;