src/cpu/x86: Add helper mp_run_on_all_aps
Add a helper function mp_run_on_all_aps, it allows running a given func on all APs excluding the BSP, with an added provision to run func in serial manner per AP. BUG=b:169114674 Signed-off-by: Aamir Bohra <aamir.bohra@intel.com> Change-Id: I74ee8168eb6380e346590f2575350e0a6b73856e Reviewed-on: https://review.coreboot.org/c/coreboot/+/51271 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
committed by
Tim Wawrzynczak
parent
a5cdf75f69
commit
7e0019ef20
@@ -125,6 +125,12 @@ enum {
|
||||
int mp_run_on_aps(void (*func)(void *), void *arg, int logical_cpu_num,
|
||||
long expire_us);
|
||||
|
||||
/*
|
||||
* Runs func on all APs excluding BSP, with a provision to run calls in parallel
|
||||
* or serially per AP.
|
||||
*/
|
||||
int mp_run_on_all_aps(void (*func)(void *), void *arg, long expire_us, bool run_parallel);
|
||||
|
||||
/* Like mp_run_on_aps() but also runs func on BSP. */
|
||||
int mp_run_on_all_cpus(void (*func)(void *), void *arg);
|
||||
|
||||
|
Reference in New Issue
Block a user