summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/thread.c')
-rw-r--r--cpukit/score/src/thread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/score/src/thread.c b/cpukit/score/src/thread.c
index a181780e52..9c9a7691c8 100644
--- a/cpukit/score/src/thread.c
+++ b/cpukit/score/src/thread.c
@@ -316,7 +316,8 @@ void _Thread_Clear_state(
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
- if ( _Modes_Is_preempt( _Thread_Executing->current_modes ) )
+ if ( _Modes_Is_preempt( _Thread_Executing->current_modes ) ||
+ the_thread->current_priority == 0 )
_Context_Switch_necessary = TRUE;
}
}