diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-17 10:12:14 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-31 08:29:43 +0200 |
commit | 5c731a83485ce3e7a6b6556e7a38b92d10a98cd6 (patch) | |
tree | bee44daeabdb237541a911283651f43c91b1c049 /cpukit/rtems | |
parent | score: Delete post-switch API extensions (diff) | |
download | rtems-5c731a83485ce3e7a6b6556e7a38b92d10a98cd6.tar.bz2 |
score: Use thread action for thread restart
The thread restart is now supported on SMP. New test
smptests/smpthreadlife01.
Diffstat (limited to 'cpukit/rtems')
-rw-r--r-- | cpukit/rtems/src/taskrestart.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/cpukit/rtems/src/taskrestart.c b/cpukit/rtems/src/taskrestart.c index daac0da0c7..ad446421f9 100644 --- a/cpukit/rtems/src/taskrestart.c +++ b/cpukit/rtems/src/taskrestart.c @@ -34,15 +34,7 @@ rtems_status_code rtems_task_restart( case OBJECTS_LOCAL: if ( _Thread_Restart( the_thread, NULL, argument ) ) { - if ( _Thread_Is_executing( the_thread ) ) { - _Objects_Put_and_keep_thread_dispatch_disabled( - &the_thread->Object - ); - _Thread_Restart_self(); - } else { - _Objects_Put( &the_thread->Object ); - } - + _Objects_Put( &the_thread->Object ); return RTEMS_SUCCESSFUL; } _Objects_Put( &the_thread->Object ); |