commit | 0538d6833cc61722ee506fab4609d9c1cf010491 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Fri Jul 17 08:48:21 2020 -0600 |
committer | Bin Meng <bmeng.cn@gmail.com> | Mon Jul 20 09:46:46 2020 +0800 |
tree | e2f8957f458a8c32a4f6581e648281f9fc533353 | |
parent | 99a573fb326faf5a7bff50e4f9875f2066728d95 [diff] |
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>