summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2018-05-03 18:48:41 +0530
committerSubrata Banik <subrata.banik@intel.com>2018-05-19 01:16:06 +0000
commit8a25caee0507655d775e3dcc21b36b01ca517113 (patch)
tree7cde904b2a0c3a3296a1008a3167a0f1f43e61de /src/soc/amd
parente66600ee4f33291ef620133c7f2df54f449d9470 (diff)
downloadcoreboot-8a25caee0507655d775e3dcc21b36b01ca517113.tar.xz
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 <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/26034 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/pi/def_callouts.c6
1 files changed, 4 insertions, 2 deletions
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;
}