diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-29 13:57:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-23 11:00:28 +0100 |
commit | 3c0760414e0dc0e23eecd3d5946852b6b3dfce96 (patch) | |
tree | f8762e31f31991858fafa7444c2b71af9bac00e3 /cpukit/include/rtems/score/schedulerimpl.h | |
parent | cpukit: Consistize OAR copyright headers (diff) | |
download | rtems-3c0760414e0dc0e23eecd3d5946852b6b3dfce96.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/score/schedulerimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/include/rtems/score/schedulerimpl.h b/cpukit/include/rtems/score/schedulerimpl.h index 2c53c05056..6e079f3a80 100644 --- a/cpukit/include/rtems/score/schedulerimpl.h +++ b/cpukit/include/rtems/score/schedulerimpl.h @@ -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 ); } } |