Re: smp_rendezvous_cpus() vs sched_bind()

2010-11-25 Thread Max Laier
Am 22.11.2010 22:16, schrieb Andriy Gapon: If I need to call a function func on a specific CPU which one of the following I should use? 1. smp_rendezvous_cpus(1 cpuid, ..., func, ...); 2. sched_bind(cpuid); func(); sched_unbind(); Or does it depend on some additional factors? What are the

smp_rendezvous_cpus() vs sched_bind()

2010-11-22 Thread Andriy Gapon
If I need to call a function func on a specific CPU which one of the following I should use? 1. smp_rendezvous_cpus(1 cpuid, ..., func, ...); 2. sched_bind(cpuid); func(); sched_unbind(); Or does it depend on some additional factors? What are the main differences here? And also by extension.