diff options
Diffstat (limited to 'cpukit/include/rtems/score')
-rw-r--r-- | cpukit/include/rtems/score/schedulersmpimpl.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cpukit/include/rtems/score/schedulersmpimpl.h b/cpukit/include/rtems/score/schedulersmpimpl.h index ab20a554f3..2ebcd98373 100644 --- a/cpukit/include/rtems/score/schedulersmpimpl.h +++ b/cpukit/include/rtems/score/schedulersmpimpl.h @@ -1435,7 +1435,6 @@ static inline void _Scheduler_SMP_Yield( Scheduler_SMP_Enqueue_scheduled enqueue_scheduled ) { - bool needs_help; Scheduler_SMP_Node_state node_state; Priority_Control insert_priority; @@ -1446,17 +1445,9 @@ static inline void _Scheduler_SMP_Yield( if ( node_state == SCHEDULER_SMP_NODE_SCHEDULED ) { ( *extract_from_scheduled )( context, node ); ( *enqueue_scheduled )( context, node, insert_priority ); - needs_help = false; } else if ( node_state == SCHEDULER_SMP_NODE_READY ) { ( *extract_from_ready )( context, node ); - - needs_help = ( *enqueue )( context, node, insert_priority ); - } else { - needs_help = true; - } - - if ( needs_help ) { - _Scheduler_Ask_for_help( thread ); + (void) ( *enqueue )( context, node, insert_priority ); } } |