Date: Tue, 26 Aug 2014 13:04:11 +0000 From: Wei Hu <weh@microsoft.com> To: "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org> Subject: Way to run a routine on different cpu Message-ID: <181e94bf68994dd9a67c6504f7fdf0d7@BY1PR0301MB0902.namprd03.prod.outlook.com>
index | next in thread | raw e-mail
Hi, I am wondering what is the right way to run a routine on a differnet cpu and wait for it to complete in FreeBSD kernel. For example, on cpu-0 I want to send a IPI to cpu-1 to let it run a routine called foo(). On cpu-0 I will wait till foo() completes. Is smp_rendezvous() the right way to do it? What if I only want it to run on one cpu, not all cpus? Thanks, Weihome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?181e94bf68994dd9a67c6504f7fdf0d7>
