From 8a25caee0507655d775e3dcc21b36b01ca517113 Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Thu, 3 May 2018 18:48:41 +0530 Subject: cpu/x86: Add support to run function on single AP This patch ensures that user can select a specific AP to run a function. BUG=b:74436746 BRANCH=none TEST=Able to run functions over APs with argument. Change-Id: Iff2f34900ce2a96ef6ff0779b651f25ebfc739ad Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/26034 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/pi/def_callouts.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/soc/amd/common') diff --git a/src/soc/amd/common/block/pi/def_callouts.c b/src/soc/amd/common/block/pi/def_callouts.c index 0afa82517d..2c17a3f8a5 100644 --- a/src/soc/amd/common/block/pi/def_callouts.c +++ b/src/soc/amd/common/block/pi/def_callouts.c @@ -219,7 +219,8 @@ AGESA_STATUS agesa_RunFuncOnAp(UINT32 Func, UINTN Data, VOID *ConfigPtr) agesadata.Func = Func; agesadata.Data = Data; agesadata.ConfigPtr = ConfigPtr; - mp_run_on_aps(callout_ap_entry, NULL, 100 * USECS_PER_MSEC); + mp_run_on_aps(callout_ap_entry, NULL, MP_RUN_ON_ALL_CPUS, + 100 * USECS_PER_MSEC); return AGESA_SUCCESS; } @@ -231,7 +232,8 @@ AGESA_STATUS agesa_RunFcnOnAllAps(UINT32 Func, UINTN Data, VOID *ConfigPtr) agesadata.Func = Func; agesadata.Data = Data; agesadata.ConfigPtr = ConfigPtr; - mp_run_on_aps(callout_ap_entry, NULL, 100 * USECS_PER_MSEC); + mp_run_on_aps(callout_ap_entry, NULL, MP_RUN_ON_ALL_CPUS, + 100 * USECS_PER_MSEC); return AGESA_SUCCESS; } -- cgit v1.2.3