mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Reduce duplicated logic for !SMP
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
718d07c040
commit
533f3e1026
1 changed files with 2 additions and 9 deletions
|
|
@ -779,15 +779,8 @@ smp_rendezvous(void (*setup_func)(void *),
|
|||
void *arg)
|
||||
{
|
||||
|
||||
/* Look comments in the smp_rendezvous_cpus() case. */
|
||||
spinlock_enter();
|
||||
if (setup_func != NULL)
|
||||
setup_func(arg);
|
||||
if (action_func != NULL)
|
||||
action_func(arg);
|
||||
if (teardown_func != NULL)
|
||||
teardown_func(arg);
|
||||
spinlock_exit();
|
||||
smp_rendezvous_cpus(all_cpus, setup_func, action_func, teardown_func,
|
||||
arg);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue