diff options
Diffstat (limited to 'cpukit/score/src/schedulerpriorityblock.c')
-rw-r--r-- | cpukit/score/src/schedulerpriorityblock.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/cpukit/score/src/schedulerpriorityblock.c b/cpukit/score/src/schedulerpriorityblock.c index 9e48101f9e..329ddd7bda 100644 --- a/cpukit/score/src/schedulerpriorityblock.c +++ b/cpukit/score/src/schedulerpriorityblock.c @@ -21,20 +21,14 @@ #endif #include <rtems/score/schedulerpriorityimpl.h> -#include <rtems/score/threadimpl.h> void _Scheduler_priority_Block( Thread_Control *the_thread ) { - _Scheduler_priority_Ready_queue_extract( the_thread ); - - /* TODO: flash critical section? */ - - if ( _Thread_Is_heir( the_thread ) ) - _Scheduler_priority_Schedule_body(); - - if ( _Thread_Is_executing( the_thread ) ) - _Thread_Dispatch_necessary = true; - + _Scheduler_Generic_block( + _Scheduler_priority_Ready_queue_extract, + _Scheduler_priority_Schedule_body, + the_thread + ); } |