svn commit: r305079 - head/sys/kern
Bryan Drewery
bdrewery at FreeBSD.org
Tue Aug 30 19:26:08 UTC 2016
Author: bdrewery
Date: Tue Aug 30 19:26:07 2016
New Revision: 305079
URL: https://svnweb.freebsd.org/changeset/base/305079
Log:
Reduce duplicated logic for !SMP
Sponsored by: EMC / Isilon Storage Division
Modified:
head/sys/kern/subr_smp.c
Modified: head/sys/kern/subr_smp.c
==============================================================================
--- head/sys/kern/subr_smp.c Tue Aug 30 19:20:26 2016 (r305078)
+++ head/sys/kern/subr_smp.c Tue Aug 30 19:26:07 2016 (r305079)
@@ -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);
}
/*
More information about the svn-src-head
mailing list