]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: mp: Add iterators for CPUs
authorSimon Glass <sjg@chromium.org>
Fri, 17 Jul 2020 14:48:21 +0000 (08:48 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Mon, 20 Jul 2020 01:46:46 +0000 (09:46 +0800)
commit0538d6833cc61722ee506fab4609d9c1cf010491
treee2f8957f458a8c32a4f6581e648281f9fc533353
parent99a573fb326faf5a7bff50e4f9875f2066728d95
x86: mp: Add iterators for CPUs

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@chromium.org>
Reviewed-by: Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/mp_init.c
arch/x86/include/asm/mp.h