Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Jan 2024 19:55:55 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Himanshu Chauhan <himanshu@thechauhan.dev>
Cc:        freebsd-riscv@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: Calling a function on other CPUs in an SMP machine
Message-ID:  <ZZw3K2d3dI-wEfhZ@kib.kiev.ua>
In-Reply-To: <7A8DC6C8-9582-455C-B05D-9F24838A9070@thechauhan.dev>
References:  <7A8DC6C8-9582-455C-B05D-9F24838A9070@thechauhan.dev>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZZw3K2d3dI-wEfhZ>