[PATCH v3 15/25] x86: mp: Add iterators for CPUs
Bin Meng
bmeng.cn at gmail.com
Tue Jul 7 10:27:50 CEST 2020
On Mon, Jul 6, 2020 at 11:37 AM Simon Glass <sjg at chromium.org> wrote:
>
> It is convenient to iterate through the CPUs performing work on each one
> and processing the result. Add a few iterator functions which handle this.
> These can be used by any client code. It can call mp_run_on_cpus() on
> each CPU that is returned, handling them one at a time.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Wolfgang Wallner <wolfgang.wallner at br-automation.com>
> ---
>
> Changes in v3:
> - Add more comments on how the iterators work
>
> arch/x86/cpu/mp_init.c | 62 +++++++++++++++++++++++++++++++++++++++
> arch/x86/include/asm/mp.h | 42 ++++++++++++++++++++++++++
> 2 files changed, 104 insertions(+)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list