mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-18 06:41:23 +08:00
Use _SMP_Unicast_action()
It is a bit more efficient.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user