summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-18 12:54:05 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-01-18 13:33:18 +0100
commitb5bdecfe00b057b682feba0a98a079704108317d (patch)
tree99be956248bb9a7d84eaccdab4bfaf6d899a2293
parentscore: Simplify _Addresses_Is_aligned() (diff)
downloadrtems-b5bdecfe00b057b682feba0a98a079704108317d.tar.bz2
score: Avoid internal API and use ISR lock
-rw-r--r--cpukit/score/src/smpmulticastaction.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cpukit/score/src/smpmulticastaction.c b/cpukit/score/src/smpmulticastaction.c
index 455fbd7d34..df03c79fa1 100644
--- a/cpukit/score/src/smpmulticastaction.c
+++ b/cpukit/score/src/smpmulticastaction.c
@@ -11,7 +11,7 @@
#endif
#include <rtems/score/smpimpl.h>
-#include <rtems/score/smplock.h>
+#include <rtems/score/isrlock.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/sysstate.h>
@@ -24,23 +24,23 @@ typedef struct {
} SMP_Multicast_action;
typedef struct {
- SMP_lock_Control Lock;
+ ISR_lock_Control Lock;
Chain_Control Actions;
} SMP_Multicast_context;
static SMP_Multicast_context _SMP_Multicast = {
- .Lock = SMP_LOCK_INITIALIZER( "SMP Multicast Action" ),
+ .Lock = ISR_LOCK_INITIALIZER( "SMP Multicast Action" ),
.Actions = CHAIN_INITIALIZER_EMPTY( _SMP_Multicast.Actions )
};
void _SMP_Multicast_actions_process( void )
{
- SMP_lock_Context lock_context;
+ ISR_lock_Context lock_context;
uint32_t cpu_self_index;
SMP_Multicast_action *node;
SMP_Multicast_action *next;
- _SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
+ _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
cpu_self_index = _SMP_Get_current_processor();
node = (SMP_Multicast_action *) _Chain_First( &_SMP_Multicast.Actions );
@@ -61,7 +61,7 @@ void _SMP_Multicast_actions_process( void )
node = next;
}
- _SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
+ _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
}
static void
@@ -97,7 +97,7 @@ void _SMP_Multicast_action(
{
SMP_Multicast_action node;
Processor_mask targets;
- SMP_lock_Context lock_context;
+ ISR_lock_Context lock_context;
uint32_t i;
if ( ! _System_state_Is_up( _System_state_Get() ) ) {
@@ -123,9 +123,9 @@ void _SMP_Multicast_action(
_Processor_mask_Assign( &node.targets, &targets );
_Atomic_Store_ulong( &node.done, 0, ATOMIC_ORDER_RELAXED );
- _SMP_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
+ _ISR_lock_ISR_disable_and_acquire( &_SMP_Multicast.Lock, &lock_context );
_Chain_Prepend_unprotected( &_SMP_Multicast.Actions, &node.Node );
- _SMP_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
+ _ISR_lock_Release_and_ISR_enable( &_SMP_Multicast.Lock, &lock_context );
_SMP_Send_message_multicast( &targets, SMP_MESSAGE_MULTICAST_ACTION );
_SMP_Multicasts_try_process();