summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-04 08:46:27 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-06 09:08:23 +0200
commit88f4157c93e3e2b91897b9925cea04b9c384a3c2 (patch)
treef63aa18d80c88b24c593757ca81ae4168e660328 /cpukit/sapi
parentscore: Delete _Chain_Prepend() (diff)
downloadrtems-88f4157c93e3e2b91897b9925cea04b9c384a3c2.tar.bz2
score: Delete _Chain_Append_with_empty_check()
This function is not used in the score. Update #2555.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/include/rtems/chain.h10
-rw-r--r--cpukit/sapi/src/chainprotected.c4
2 files changed, 2 insertions, 12 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h
index ba8cd329f1..01d743f972 100644
--- a/cpukit/sapi/include/rtems/chain.h
+++ b/cpukit/sapi/include/rtems/chain.h
@@ -750,20 +750,10 @@ RTEMS_INLINE_ROUTINE void rtems_chain_prepend_unprotected(
* @retval true The chain was empty before the append.
* @retval false The chain contained at least one node before the append.
*/
-#if defined( RTEMS_SMP )
bool rtems_chain_append_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
);
-#else
-RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check(
- rtems_chain_control *chain,
- rtems_chain_node *node
-)
-{
- return _Chain_Append_with_empty_check( chain, node );
-}
-#endif
/**
* @brief Checks if the @a chain is empty and prepends the @a node.
diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c
index ce8bc5eb39..51842f4d13 100644
--- a/cpukit/sapi/src/chainprotected.c
+++ b/cpukit/sapi/src/chainprotected.c
@@ -89,8 +89,6 @@ void rtems_chain_prepend(
chain_release( &lock_context );
}
-#if defined( RTEMS_SMP )
-
bool rtems_chain_append_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
@@ -106,6 +104,8 @@ bool rtems_chain_append_with_empty_check(
return was_empty;
}
+#if defined( RTEMS_SMP )
+
bool rtems_chain_prepend_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node