summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r--cpukit/score/src/smp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 3094fe31f8..87078887ec 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -140,14 +140,11 @@ void _SMP_Request_shutdown( void )
_Giant_Drop( self_cpu );
}
-void _SMP_Send_message( uint32_t cpu_index, uint32_t message )
+void _SMP_Send_message( uint32_t cpu_index, unsigned long message )
{
Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
- ISR_Level level;
- _Per_CPU_ISR_disable_and_acquire( cpu, level );
- cpu->message |= message;
- _Per_CPU_Release_and_ISR_enable( cpu, level );
+ _Atomic_Fetch_or_ulong( &cpu->message, message, ATOMIC_ORDER_RELAXED );
_CPU_SMP_Send_interrupt( cpu_index );
}