diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-04-18 06:47:01 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-05-20 08:49:39 +0200 |
commit | 658700449de9d67d8571b707eec50c06fdfb9455 (patch) | |
tree | 3c2c502dab87383f390f185ca7aeb920e0563b7d /cpukit/score/src/smpmulticastaction.c | |
parent | smptests: Move SMP broadcast action test case (diff) | |
download | rtems-658700449de9d67d8571b707eec50c06fdfb9455.tar.bz2 |
score: Add _SMP_Broadcast_action()
Diffstat (limited to 'cpukit/score/src/smpmulticastaction.c')
-rw-r--r-- | cpukit/score/src/smpmulticastaction.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpukit/score/src/smpmulticastaction.c b/cpukit/score/src/smpmulticastaction.c index ea430e8e7c..b703ba14a7 100644 --- a/cpukit/score/src/smpmulticastaction.c +++ b/cpukit/score/src/smpmulticastaction.c @@ -233,10 +233,6 @@ void _SMP_Multicast_action( cpu_max = _SMP_Get_processor_maximum(); _Assert( cpu_max <= CPU_MAXIMUM_PROCESSORS ); - if ( targets == NULL ) { - targets = _SMP_Get_online_processors(); - } - jobs.handler = handler; jobs.arg = arg; isr_level = _ISR_Get_level(); @@ -254,3 +250,11 @@ void _SMP_Multicast_action( _Thread_Dispatch_enable( cpu_self ); } } + +void _SMP_Broadcast_action( + SMP_Action_handler handler, + void *arg +) +{ + _SMP_Multicast_action( _SMP_Get_online_processors(), handler, arg ); +} |