Skip to content
Commit 84d3ed12 authored by Simon Glass's avatar Simon Glass Committed by Bin Meng
Browse files

x86: mp: Allow running functions on multiple CPUs



Add a way to run a function on a selection of CPUs. This supports either
a single CPU, all CPUs, just the main CPU or just the 'APs', in Intel
terminology.

It works by writing into a mailbox and then waiting for the CPUs to notice
it, take action and indicate they are done.

When SMP is not yet enabled, this just calls the function on the main CPU.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarWolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
parent db3a37c7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment