audk/UefiCpuPkg/Library
Eric Dong cf4e79e466 UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs.
Base on UEFI spec requirement, StartAllAPs function should not use the APs which has been disabled before. This patch just change current code to follow this rule.

V3 changes:
Only called by StartUpAllAps, WakeUpAp will not wake up the disabled APs, in other cases also need to include the disabled APs, such as CpuDxe driver start up and ChangeApLoopCallback function.

WakeUpAP() is called with (Broadcast && WakeUpDisabledAps) from MpInitLibInitialize(), CollectProcessorCount() and MpInitChangeApLoopCallback() only. The first two run before the PPI or Protocol user has a chance to disable any APs. The last one runs in response to the ExitBootServices and LegacyBoot events, after which the MP protocol is unusable. For this reason, it doesn't matter that an originally disabled AP's state is not restored to Disabled, when
WakeUpAP() is called with (Broadcast && WakeUpDisabledAps).

Cc: Laszlo Ersek <lersek@redhat.com>
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: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
2018-07-26 16:54:18 +08:00
..
BaseUefiCpuLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
BaseXApicLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
BaseXApicX2ApicLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
CpuCommonFeaturesLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
CpuExceptionHandlerLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
MpInitLib UefiCpuPkg/MpInitLib: Not use disabled AP when call StartAllAPs. 2018-07-26 16:54:18 +08:00
MtrrLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
PlatformSecLibNull UefiCpuPkg: Convert all .uni files to utf-8 2015-12-15 04:59:14 +00:00
RegisterCpuFeaturesLib UefiCpuPkg: Clean up source files 2018-06-28 11:19:53 +08:00
SecPeiDxeTimerLibUefiCpu UefiCpuPkg: Removing ipf which is no longer supported from edk2. 2018-06-29 16:19:52 +08:00
SmmCpuFeaturesLib UefiCpuPkg: Remove X86 ASM and S files 2018-06-07 15:27:36 +08:00
SmmCpuPlatformHookLibNull UefiCpuPkg: Convert all .uni files to utf-8 2015-12-15 04:59:14 +00:00