forked from Imagelibrary/rtems
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:
@@ -761,7 +761,7 @@ RTEMS_INLINE_ROUTINE void _Scheduler_Generic_block(
|
|||||||
|
|
||||||
/* TODO: flash critical section? */
|
/* 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 );
|
( *schedule )( scheduler, the_thread, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user