diff options
author | Eric Dong <eric.dong@intel.com> | 2017-10-23 15:02:36 +0800 |
---|---|---|
committer | Eric Dong <eric.dong@intel.com> | 2017-10-24 16:05:37 +0800 |
commit | 0594ec417c89ed00cbea6a0b0458334727c4dc28 (patch) | |
tree | f16cff7d94f418b9c7cdf0c14052b4849c20e969 /ShellPkg/Library | |
parent | 37676b9f82ab17bb043a0901d054cd8ab519543c (diff) | |
download | edk2-0594ec417c89ed00cbea6a0b0458334727c4dc28.zip edk2-0594ec417c89ed00cbea6a0b0458334727c4dc28.tar.gz edk2-0594ec417c89ed00cbea6a0b0458334727c4dc28.tar.bz2 |
UefiCpuPkg/MpInitLib: Enhance waiting for AP initialization logic.
Current logic always waiting for a specific value to collect all APs
count. This logic may caused some platforms cost too much time to
wait for time out.
This patch add new logic to collect APs count. It adds new variable
NumApsExecuting to detect whether all APs have finished initialization.
Each AP let NumApsExecuting++ when begin to initialize itself and let
NumApsExecuting-- when it finish the initialization. BSP base on whether
NumApsExecuting == 0 to finished the collect AP process.
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com>
Diffstat (limited to 'ShellPkg/Library')
0 files changed, 0 insertions, 0 deletions