mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 00:54:27 +08:00
Use _SMP_Unicast_action()
It is a bit more efficient.
This commit is contained in:
@@ -41,12 +41,9 @@ typedef void (*smp_call_func_t)(void *arg);
|
||||
static inline int
|
||||
smp_call_function_single(int cpu, smp_call_func_t func, void *arg, int wait)
|
||||
{
|
||||
cpu_set_t set;
|
||||
|
||||
(void)wait;
|
||||
CPU_ZERO(&set);
|
||||
CPU_SET(cpu, &set);
|
||||
_SMP_Multicast_action(sizeof(set), &set, func, arg);
|
||||
_SMP_Unicast_action((uint32_t)cpu, func, arg);
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user