Re: [PATCH v6 15/25] x86: mp: Add iterators for CPUs

2020-07-19 Thread Bin Meng
On Fri, Jul 17, 2020 at 10:49 PM Simon Glass 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 r

[PATCH v6 15/25] x86: mp: Add iterators for CPUs

2020-07-17 Thread Simon Glass
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 Gla