From 658700449de9d67d8571b707eec50c06fdfb9455 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 18 Apr 2019 06:47:01 +0200 Subject: score: Add _SMP_Broadcast_action() --- cpukit/score/src/smpmulticastaction.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'cpukit/score/src') 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 ); +} -- cgit v1.2.3