diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-15 19:27:46 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2011-03-15 19:27:46 +0000 |
commit | 59eb1254adb500437d6f7d88102e49bc36061d04 (patch) | |
tree | fb8208899faa4a45e9c0f3cc798f735c1e196784 /cpukit/score/src/threadsuspend.c | |
parent | 2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-59eb1254adb500437d6f7d88102e49bc36061d04.tar.bz2 |
2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/src/taskresume.c, score/Makefile.am,
score/include/rtems/score/thread.h: Convert _Thread_Resume and
_Thread_Suspend into macros.
* score/src/threadresume.c, score/src/threadsuspend.c: Removed.
Diffstat (limited to 'cpukit/score/src/threadsuspend.c')
-rw-r--r-- | cpukit/score/src/threadsuspend.c | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/cpukit/score/src/threadsuspend.c b/cpukit/score/src/threadsuspend.c deleted file mode 100644 index f5169a25f2..0000000000 --- a/cpukit/score/src/threadsuspend.c +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Thread Handler / Thread Suspend - * - * - * COPYRIGHT (c) 1989-2011. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <rtems/system.h> -#include <rtems/score/apiext.h> -#include <rtems/score/context.h> -#include <rtems/score/interr.h> -#include <rtems/score/isr.h> -#include <rtems/score/object.h> -#include <rtems/score/priority.h> -#include <rtems/score/scheduler.h> -#include <rtems/score/states.h> -#include <rtems/score/sysstate.h> -#include <rtems/score/thread.h> -#include <rtems/score/threadq.h> -#include <rtems/score/userext.h> -#include <rtems/score/wkspace.h> - -/* INTERRUPT LATENCY: - * ready chain - * select map - */ -void _Thread_Suspend( - Thread_Control *the_thread -) -{ - ISR_Level level; - - _ISR_Disable( level ); - if ( !_States_Is_ready( the_thread->current_state ) ) { - the_thread->current_state = - _States_Set( STATES_SUSPENDED, the_thread->current_state ); - _ISR_Enable( level ); - return; - } - - the_thread->current_state = STATES_SUSPENDED; - - _Scheduler_Block( the_thread ); - - _ISR_Enable( level ); -} |