summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-15 19:27:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-03-15 19:27:46 +0000
commit59eb1254adb500437d6f7d88102e49bc36061d04 (patch)
treefb8208899faa4a45e9c0f3cc798f735c1e196784 /cpukit/score/src
parent2011-03-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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')
-rw-r--r--cpukit/score/src/threadresume.c61
-rw-r--r--cpukit/score/src/threadsuspend.c57
2 files changed, 0 insertions, 118 deletions
diff --git a/cpukit/score/src/threadresume.c b/cpukit/score/src/threadresume.c
deleted file mode 100644
index a3a4f03ee9..0000000000
--- a/cpukit/score/src/threadresume.c
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Thread Handler / Thread Resume
- *
- *
- * 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:
- * priority map
- * select heir
- */
-void _Thread_Resume(
- Thread_Control *the_thread,
- bool force
-)
-{
-
- ISR_Level level;
- States_Control current_state;
-
- _ISR_Disable( level );
-
- current_state = the_thread->current_state;
- if ( current_state & STATES_SUSPENDED ) {
- current_state =
- the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
-
- if ( _States_Is_ready( current_state ) ) {
- _Scheduler_Unblock( the_thread );
- }
- }
-
- _ISR_Enable( level );
-}
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 );
-}