summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/taskrestart.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/rtems/src/taskrestart.c')
-rw-r--r--cpukit/rtems/src/taskrestart.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/cpukit/rtems/src/taskrestart.c b/cpukit/rtems/src/taskrestart.c
index 00b0635cef..6bf7358384 100644
--- a/cpukit/rtems/src/taskrestart.c
+++ b/cpukit/rtems/src/taskrestart.c
@@ -48,13 +48,7 @@ rtems_status_code rtems_task_restart(
entry = the_thread->Start.Entry;
entry.Kinds.Numeric.argument = argument;
-
- if ( the_thread == _Thread_Executing ) {
- _Thread_Restart_self( the_thread, &entry, &lock_context );
- RTEMS_UNREACHABLE();
- }
-
- status = _Thread_Restart_other( the_thread, &entry, &lock_context );
+ status = _Thread_Restart( the_thread, &entry, &lock_context );
return _Status_Get( status );
}