diff options
author | avg <avg@FreeBSD.org> | 2010-12-07 12:04:06 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2010-12-07 12:04:06 +0000 |
commit | c652724d35aa333da55977e70fee1869b5526767 (patch) | |
tree | bac23cdb3b5d6c67e0b7870cf6203d9ac815d68f /sys/cddl/dev/cyclic | |
parent | 1bf1cfe9bd971989e311cbdcfddcb91379cff088 (diff) | |
download | FreeBSD-src-c652724d35aa333da55977e70fee1869b5526767.zip FreeBSD-src-c652724d35aa333da55977e70fee1869b5526767.tar.gz |
opensolaris cyclic xcall: no need for special handling of curcpu
smp_rendezvous_cpus already properly handles current CPU case
and non-SMP case.
MFC after: 3 weeks
Diffstat (limited to 'sys/cddl/dev/cyclic')
-rw-r--r-- | sys/cddl/dev/cyclic/i386/cyclic_machdep.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/cddl/dev/cyclic/i386/cyclic_machdep.c b/sys/cddl/dev/cyclic/i386/cyclic_machdep.c index 0b6ab59..1d0864a 100644 --- a/sys/cddl/dev/cyclic/i386/cyclic_machdep.c +++ b/sys/cddl/dev/cyclic/i386/cyclic_machdep.c @@ -121,13 +121,7 @@ static void reprogram(cyb_arg_t arg, hrtime_t exp) static void xcall(cyb_arg_t arg, cpu_t *c, cyc_func_t func, void *param) { - /* - * If the target CPU is the current one, just call the - * function. This covers the non-SMP case. - */ - if (c == &solaris_cpu[curcpu]) - (*func)(param); - else - smp_rendezvous_cpus((cpumask_t) (1 << c->cpuid), NULL, - func, smp_no_rendevous_barrier, param); + + smp_rendezvous_cpus((cpumask_t) (1 << c->cpuid), NULL, + func, smp_no_rendevous_barrier, param); } |