diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c index 4f3b51de276..d98b1b7212e 100644 --- a/sys/kern/subr_smp.c +++ b/sys/kern/subr_smp.c @@ -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); } /*