summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadsetstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadsetstate.c')
-rw-r--r--cpukit/score/src/threadsetstate.c22
1 files changed, 4 insertions, 18 deletions
diff --git a/cpukit/score/src/threadsetstate.c b/cpukit/score/src/threadsetstate.c
index 89366f8c7d..1dcf33344c 100644
--- a/cpukit/score/src/threadsetstate.c
+++ b/cpukit/score/src/threadsetstate.c
@@ -1,8 +1,7 @@
/*
- * Thread Handler
+ * Thread Handler / Thread Set State
*
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -31,24 +30,11 @@
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
-/*PAGE
- *
- * _Thread_Set_state
- *
- * This kernel routine sets the requested state in the THREAD. The
- * THREAD chain is adjusted if necessary.
- *
- * Input parameters:
- * the_thread - pointer to thread control block
- * state - state to be set
- *
- * Output parameters: NONE
- *
+/*
* INTERRUPT LATENCY:
* ready chain
* select map
*/
-
void _Thread_Set_state(
Thread_Control *the_thread,
States_Control state
@@ -66,7 +52,7 @@ void _Thread_Set_state(
the_thread->current_state = state;
- _Scheduler_Block( &_Scheduler, the_thread);
+ _Scheduler_Block( the_thread );
_ISR_Enable( level );
}