Use _SMP_Unicast_action()

It is a bit more efficient.
This commit is contained in:
Sebastian Huber
2019-05-17 10:21:58 +02:00
parent 16fa6a4651
commit 31b5c87357
2 changed files with 2 additions and 8 deletions

View File

@@ -278,10 +278,7 @@ epoch_block_handler_preempt(struct ck_epoch *g __unused,
#ifdef RTEMS_SMP
if (cpu_self_index != er->er_cpuid) {
Processor_mask targets;
_Processor_mask_From_index(&targets, er->er_cpuid);
_SMP_Multicast_action(&targets, epoch_register_mutex, &etm);
_SMP_Unicast_action(er->er_cpuid, epoch_register_mutex, &etm);
} else {
epoch_register_mutex(&etm);
}