Date: Fri, 11 Mar 2011 16:05:36 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r219499 - stable/8/sys/cddl/dev/cyclic/i386 Message-ID: <201103111605.p2BG5aJS085297@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Fri Mar 11 16:05:36 2011 New Revision: 219499 URL: http://svn.freebsd.org/changeset/base/219499 Log: MFC r216252: opensolaris cyclic xcall: no need for special handling of curcpu Modified: stable/8/sys/cddl/dev/cyclic/i386/cyclic_machdep.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) Modified: stable/8/sys/cddl/dev/cyclic/i386/cyclic_machdep.c ============================================================================== --- stable/8/sys/cddl/dev/cyclic/i386/cyclic_machdep.c Fri Mar 11 16:02:38 2011 (r219498) +++ stable/8/sys/cddl/dev/cyclic/i386/cyclic_machdep.c Fri Mar 11 16:05:36 2011 (r219499) @@ -121,13 +121,7 @@ static void reprogram(cyb_arg_t arg, hrt 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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103111605.p2BG5aJS085297>