summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-04 09:37:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-06 09:08:24 +0200
commitd995a263b5de31583cd269c71a5ef760e98e8f26 (patch)
tree0916554dcc2cc384d2bdfd58ae65fe39571b15d1
parentscore: Delete _Chain_Get() (diff)
downloadrtems-d995a263b5de31583cd269c71a5ef760e98e8f26.tar.bz2
score: Delete _Chain_Append()
This function is not used in the score. Update #2555.
-rw-r--r--cpukit/sapi/include/rtems/chain.h10
-rw-r--r--cpukit/sapi/src/chainprotected.c4
-rw-r--r--cpukit/score/Makefile.am2
-rw-r--r--cpukit/score/include/rtems/score/chainimpl.h13
-rw-r--r--cpukit/score/src/chainappend.c51
5 files changed, 1 insertions, 79 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h
index d9254449e1..3d8a860f20 100644
--- a/cpukit/sapi/include/rtems/chain.h
+++ b/cpukit/sapi/include/rtems/chain.h
@@ -648,20 +648,10 @@ RTEMS_INLINE_ROUTINE void rtems_chain_insert_unprotected(
* NOTE: It disables interrupts to ensure the atomicity of the
* append operation.
*/
-#if defined( RTEMS_SMP )
void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
);
-#else
-RTEMS_INLINE_ROUTINE void rtems_chain_append(
- rtems_chain_control *the_chain,
- rtems_chain_node *the_node
-)
-{
- _Chain_Append( the_chain, the_node );
-}
-#endif
/**
* @brief Append a node on the end of a chain (unprotected).
diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c
index 01356665a6..868e3d878d 100644
--- a/cpukit/sapi/src/chainprotected.c
+++ b/cpukit/sapi/src/chainprotected.c
@@ -61,8 +61,6 @@ void rtems_chain_insert( rtems_chain_node *after_node, rtems_chain_node *node )
chain_release( &lock_context );
}
-#if defined( RTEMS_SMP )
-
void rtems_chain_append(
rtems_chain_control *chain,
rtems_chain_node *node
@@ -75,8 +73,6 @@ void rtems_chain_append(
chain_release( &lock_context );
}
-#endif /* defined( RTEMS_SMP ) */
-
void rtems_chain_prepend(
rtems_chain_control *chain,
rtems_chain_node *node
diff --git a/cpukit/score/Makefile.am b/cpukit/score/Makefile.am
index 403508ddb8..455c99d13d 100644
--- a/cpukit/score/Makefile.am
+++ b/cpukit/score/Makefile.am
@@ -345,7 +345,7 @@ libscore_a_SOURCES += src/userextaddset.c \
src/userext.c src/userextremoveset.c src/userextiterate.c
## STD_C_FILES
-libscore_a_SOURCES += src/chain.c src/chainappend.c \
+libscore_a_SOURCES += src/chain.c \
src/chainnodecount.c \
src/debugisthreaddispatchingallowed.c \
src/interr.c src/isr.c src/wkspace.c src/wkstringduplicate.c
diff --git a/cpukit/score/include/rtems/score/chainimpl.h b/cpukit/score/include/rtems/score/chainimpl.h
index 166b58bfcc..ff66d46859 100644
--- a/cpukit/score/include/rtems/score/chainimpl.h
+++ b/cpukit/score/include/rtems/score/chainimpl.h
@@ -80,19 +80,6 @@ void _Chain_Initialize(
);
/**
- * @brief Append a node on the end of a chain.
- *
- * This routine appends @a the_node onto the end of @a the_chain.
- *
- * @note It disables interrupts to ensure the atomicity of the
- * append operation.
- */
-void _Chain_Append(
- Chain_Control *the_chain,
- Chain_Node *the_node
-);
-
-/**
* @brief Returns the node count of the chain.
*
* @param[in] chain The chain.
diff --git a/cpukit/score/src/chainappend.c b/cpukit/score/src/chainappend.c
deleted file mode 100644
index 09c66ecbef..0000000000
--- a/cpukit/score/src/chainappend.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/**
- * @file
- *
- * @brief Append a Node on the End of a Chain
- * @ingroup ScoreChain
-*/
-
-/*
- * COPYRIGHT (c) 1989-2007.
- * 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.org/license/LICENSE.
- */
-
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <rtems/system.h>
-#include <rtems/score/address.h>
-#include <rtems/score/chainimpl.h>
-#include <rtems/score/isr.h>
-
-/*
- * _Chain_Append
- *
- * This kernel routine puts a node on the end of the specified chain.
- *
- * Input parameters:
- * the_chain - pointer to chain header
- * node - address of node to put at rear of chain
- *
- * Output parameters: NONE
- *
- * INTERRUPT LATENCY:
- * only case
- */
-
-void _Chain_Append(
- Chain_Control *the_chain,
- Chain_Node *node
-)
-{
- ISR_Level level;
-
- _ISR_Disable( level );
- _Chain_Append_unprotected( the_chain, node );
- _ISR_Enable( level );
-}