summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/threadsettransient.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/threadsettransient.c')
-rw-r--r--cpukit/score/src/threadsettransient.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/cpukit/score/src/threadsettransient.c b/cpukit/score/src/threadsettransient.c
index 931125d20d..11f91ed30e 100644
--- a/cpukit/score/src/threadsettransient.c
+++ b/cpukit/score/src/threadsettransient.c
@@ -1,8 +1,7 @@
/*
- * Thread Handler
+ * Thread Handler / Thread Set Transient
*
- *
- * COPYRIGHT (c) 1989-1999.
+ * COPYRIGHT (c) 1989-2011.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
@@ -32,24 +31,10 @@
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
-/*PAGE
- *
- * _Thread_Set_transient
- *
- * This kernel routine places the requested thread in the transient state
- * which will remove it from the ready queue, if necessary. No
- * rescheduling is necessary because it is assumed that the transient
- * state will be cleared before dispatching is enabled.
- *
- * Input parameters:
- * the_thread - pointer to thread control block
- *
- * Output parameters: NONE
- *
+/*
* INTERRUPT LATENCY:
* only case
*/
-
void _Thread_Set_transient(
Thread_Control *the_thread
)
@@ -62,9 +47,8 @@ void _Thread_Set_transient(
old_state = the_thread->current_state;
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
- /* FIXME: need to check which scheduler to use? */
if ( _States_Is_ready( old_state ) ) {
- _Scheduler_priority_Ready_queue_extract( the_thread);
+ _Scheduler_Extract( the_thread );
}
_ISR_Enable( level );