summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadstart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-08 12:11:03 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-01-11 08:47:24 +0100
commit1506658c07ad05dd58e2781af4d3df67c90b9f70 (patch)
treec7b99e1e9bd487d84c1c3e09634fb208ef413297 /cpukit/score/src/threadstart.c
parentscore: Introduce Thread_Entry_information (diff)
downloadrtems-1506658c07ad05dd58e2781af4d3df67c90b9f70.tar.bz2
score: Simplify _Thread_Start()
Diffstat (limited to 'cpukit/score/src/threadstart.c')
-rw-r--r--cpukit/score/src/threadstart.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/cpukit/score/src/threadstart.c b/cpukit/score/src/threadstart.c
index 97399ba524..0cdf2bc85a 100644
--- a/cpukit/score/src/threadstart.c
+++ b/cpukit/score/src/threadstart.c
@@ -21,30 +21,17 @@
#include <rtems/score/threadimpl.h>
#include <rtems/score/isrlevel.h>
-#include <rtems/score/schedulerimpl.h>
#include <rtems/score/userextimpl.h>
bool _Thread_Start(
Thread_Control *the_thread,
- const Thread_Entry_information *entry,
- Per_CPU_Control *cpu
+ const Thread_Entry_information *entry
)
{
if ( _States_Is_dormant( the_thread->current_state ) ) {
the_thread->Start.Entry = *entry;
_Thread_Load_environment( the_thread );
-
- if ( cpu == NULL ) {
- _Thread_Ready( the_thread );
- } else {
- const Scheduler_Control *scheduler = _Scheduler_Get_by_CPU( cpu );
-
- if ( scheduler != NULL ) {
- the_thread->current_state = STATES_READY;
- _Scheduler_Start_idle( scheduler, the_thread, cpu );
- }
- }
-
+ _Thread_Ready( the_thread );
_User_extensions_Thread_start( the_thread );
return true;