summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 08:48:26 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-07-29 09:03:50 +0200
commit6c39df7e73356ac18201acf6fe36592a97d2677c (patch)
treeaa6f4b454c96d654d77bdb552ac9ef1ddf3b6d16 /cpukit/score/src/smp.c
parentc61b855c1a3eb8fc5251c3849a2054c2ea2a259d (diff)
downloadrtems-6c39df7e73356ac18201acf6fe36592a97d2677c.tar.bz2
score: Change _SMP_Send_message() parameter type
Use the processor control to specify the target processor since this is what the callers have available.
Diffstat (limited to '')
-rw-r--r--cpukit/score/src/smp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index e04ec13fd5..e98249be51 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -322,16 +322,14 @@ void _SMP_Try_to_process_message(
}
}
-void _SMP_Send_message( uint32_t cpu_index, unsigned long message )
+void _SMP_Send_message( Per_CPU_Control *cpu, unsigned long message )
{
- Per_CPU_Control *cpu = _Per_CPU_Get_by_index( cpu_index );
-
(void) _Atomic_Fetch_or_ulong(
&cpu->message, message,
ATOMIC_ORDER_RELEASE
);
if ( _Per_CPU_Get_state( cpu ) == PER_CPU_STATE_UP ) {
- _CPU_SMP_Send_interrupt( cpu_index );
+ _CPU_SMP_Send_interrupt( _Per_CPU_Get_index( cpu ) );
}
}