summaryrefslogtreecommitdiffstats
path: root/c/src/exec/rtems/src/tasksuspend.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/exec/rtems/src/tasksuspend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/rtems/src/tasksuspend.c b/c/src/exec/rtems/src/tasksuspend.c
index c9635b0ff3..04fafcbea9 100644
--- a/c/src/exec/rtems/src/tasksuspend.c
+++ b/c/src/exec/rtems/src/tasksuspend.c
@@ -71,7 +71,7 @@ rtems_status_code rtems_task_suspend(
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
- _Thread_Set_state( the_thread, STATES_SUSPENDED );
+ _Thread_Suspend( the_thread );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}