Way to run a routine on different cpu
Wei Hu
weh at microsoft.com
Tue Aug 26 13:04:21 UTC 2014
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,
Wei
More information about the freebsd-drivers
mailing list