From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Wallner Date: Wed, 10 Jun 2020 15:27:46 +0200 Subject: [PATCH 15/22] x86: mp: Add iterators for CPUs In-Reply-To: <20200522022326.238388-12-sjg@chromium.org> References: <20200522022326.238388-12-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, -----"Simon Glass" schrieb: ----- > Betreff: [PATCH 15/22] 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 > --- > > arch/x86/cpu/mp_init.c | 62 +++++++++++++++++++++++++++++++++++++++ > arch/x86/include/asm/mp.h | 40 +++++++++++++++++++++++++ > 2 files changed, 102 insertions(+) Reviewed-by: Wolfgang Wallner