score: Simplify _Scheduler_Generic_block()

If we block the executing thread and it is not the heir thread, then there is
no need to run the schedule operation.  The scheduler already selected a new
heir.
This commit is contained in:
Sebastian Huber
2021-10-29 13:57:27 +02:00
parent 1eb266bb0b
commit 3c0760414e

View File

@@ -761,7 +761,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Generic_block(
/* TODO: flash critical section? */
if ( _Thread_Is_executing( the_thread ) || _Thread_Is_heir( the_thread ) ) {
if ( _Thread_Is_heir( the_thread ) ) {
( *schedule )( scheduler, the_thread, true );
}
}