diff options
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/include/rtems/chain.h | 9 | ||||
-rw-r--r-- | cpukit/sapi/src/chainprotected.c | 4 |
2 files changed, 2 insertions, 11 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h index 81f07b8af4..4bbdd530f6 100644 --- a/cpukit/sapi/include/rtems/chain.h +++ b/cpukit/sapi/include/rtems/chain.h @@ -560,18 +560,9 @@ RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail( * * @arg the_node specifies the node to extract */ -#if defined( RTEMS_SMP ) void rtems_chain_extract( rtems_chain_node *the_node ); -#else -RTEMS_INLINE_ROUTINE void rtems_chain_extract( - rtems_chain_node *the_node -) -{ - _Chain_Extract( the_node ); -} -#endif /** * @brief Extract the specified node from a chain (unprotected). diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c index df7a71c43c..e3ae7fd21f 100644 --- a/cpukit/sapi/src/chainprotected.c +++ b/cpukit/sapi/src/chainprotected.c @@ -31,8 +31,6 @@ static void chain_release( rtems_interrupt_lock_context *lock_context ) rtems_interrupt_lock_release( &chain_lock, lock_context ); } -#if defined( RTEMS_SMP ) - void rtems_chain_extract( rtems_chain_node *node ) { rtems_interrupt_lock_context lock_context; @@ -42,6 +40,8 @@ void rtems_chain_extract( rtems_chain_node *node ) chain_release( &lock_context ); } +#if defined( RTEMS_SMP ) + rtems_chain_node *rtems_chain_get( rtems_chain_control *chain ) { rtems_chain_node *node; |