summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-17 16:07:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-05-20 07:49:40 +0200
commit23294fd2255031eefe708075064f58bf54d43279 (patch)
tree771fca3f1ff94008c28f5ad459971f1bfbcbaff7 /cpukit/score
parenttestsuites: Replace _Thread_Get() (diff)
downloadrtems-23294fd2255031eefe708075064f58bf54d43279.tar.bz2
score: Delete unused _Thread_Get()
Update #2555.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/include/rtems/score/threadimpl.h26
-rw-r--r--cpukit/score/src/threadget.c22
2 files changed, 0 insertions, 48 deletions
diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpukit/score/include/rtems/score/threadimpl.h
index 549ca7ac35..ad87c1d3ae 100644
--- a/cpukit/score/include/rtems/score/threadimpl.h
+++ b/cpukit/score/include/rtems/score/threadimpl.h
@@ -578,32 +578,6 @@ RTEMS_INLINE_ROUTINE Objects_Information *_Thread_Get_objects_information(
}
/**
- * @brief Maps thread Id to a TCB pointer.
- *
- * This function maps thread IDs to thread control
- * blocks. If ID corresponds to a local thread, then it
- * returns the_thread control pointer which maps to ID
- * and @a location is set to OBJECTS_LOCAL. If the thread ID is
- * global and resides on a remote node, then location is set
- * to OBJECTS_REMOTE, and the_thread is undefined.
- * Otherwise, location is set to OBJECTS_ERROR and
- * the_thread is undefined.
- *
- * @param[in] id is the id of the thread.
- * @param[in] location is the location of the block.
- *
- * @note The performance of many RTEMS services depends upon
- * the quick execution of the "good object" path in this
- * routine. If there is a possibility of saving a few
- * cycles off the execution time, this routine is worth
- * further optimization attention.
- */
-Thread_Control *_Thread_Get (
- Objects_Id id,
- Objects_Locations *location
-);
-
-/**
* @brief Gets a thread by its identifier.
*
* @see _Objects_Get_local().
diff --git a/cpukit/score/src/threadget.c b/cpukit/score/src/threadget.c
index c6504994dd..194b68be87 100644
--- a/cpukit/score/src/threadget.c
+++ b/cpukit/score/src/threadget.c
@@ -21,28 +21,6 @@
#include <rtems/score/threadimpl.h>
-Thread_Control *_Thread_Get(
- Objects_Id id,
- Objects_Locations *location
-)
-{
- Objects_Information *information;
-
- if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
- _Thread_Disable_dispatch();
- *location = OBJECTS_LOCAL;
- return _Thread_Executing;
- }
-
- information = _Thread_Get_objects_information( id );
- if ( information == NULL ) {
- *location = OBJECTS_ERROR;
- return NULL;
- }
-
- return (Thread_Control *) _Objects_Get( information, id, location );
-}
-
Thread_Control *_Thread_Get_interrupt_disable(
Objects_Id id,
ISR_lock_Context *lock_context