Re: Calling a function on other CPUs in an SMP machine

From: Konstantin Belousov <kostikbel_at_gmail.com>
Date: Mon, 08 Jan 2024 17:55:55 UTC
On Mon, Jan 08, 2024 at 08:09:18PM +0530, Himanshu Chauhan wrote:
> Hi all,
> 
> What is the best way to call a function (like a per-cpu setup function from a driver) on remote CPUs in an SMP machine?
> I looked at the different IPIs defined but there isn’t one that does this. Could anyone please point me where else to look?

Look at smp_rendezvous() and might be smp_rendezvous_cpus(). It is a
powerful convenience wrapper around IPI.