summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/schedulersimpleblock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/schedulersimpleblock.c')
-rw-r--r--cpukit/score/src/schedulersimpleblock.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/cpukit/score/src/schedulersimpleblock.c b/cpukit/score/src/schedulersimpleblock.c
index b9753b5954..1e6e8a0b47 100644
--- a/cpukit/score/src/schedulersimpleblock.c
+++ b/cpukit/score/src/schedulersimpleblock.c
@@ -19,18 +19,15 @@
#include "config.h"
#endif
-#include <rtems/score/schedulersimple.h>
-#include <rtems/score/threadimpl.h>
+#include <rtems/score/schedulersimpleimpl.h>
void _Scheduler_simple_Block(
Thread_Control *the_thread
)
{
- _Scheduler_simple_Extract(the_thread);
-
- if ( _Thread_Is_heir( the_thread ) )
- _Scheduler_simple_Schedule();
-
- if ( _Thread_Is_executing( the_thread ) )
- _Thread_Dispatch_necessary = true;
+ _Scheduler_Generic_block(
+ _Scheduler_simple_Extract,
+ _Scheduler_simple_Schedule_body,
+ the_thread
+ );
}