From 51d0be751c4f7758ce67c074896568d9f29c0834 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 2 Sep 2021 20:40:19 +0530 Subject: [PATCH] cpu/x86: Use MP_RUN_ON_ALL_CPUS macro instead of hardcoding This patch ensures mp_run_on_all_aps() is passing 'MP_RUN_ON_ALL_CPUS' macro rather hardcoding `0` while running `func` on all APs. Change-Id: Icd34371c0d4349e1eefe945958eda957c4794707 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/57342 Tested-by: build bot (Jenkins) Reviewed-by: Tim Wawrzynczak --- src/cpu/x86/mp_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c index 3eef355148..aa037f3001 100644 --- a/src/cpu/x86/mp_init.c +++ b/src/cpu/x86/mp_init.c @@ -997,7 +997,7 @@ int mp_run_on_all_aps(void (*func)(void *), void *arg, long expire_us, bool run_ int ap_index, bsp_index; if (run_parallel) - return mp_run_on_aps(func, arg, 0, expire_us); + return mp_run_on_aps(func, arg, MP_RUN_ON_ALL_CPUS, expire_us); bsp_index = cpu_index();