]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiService.
authorEric Dong <eric.dong@intel.com>
Fri, 4 Jan 2019 05:37:29 +0000 (13:37 +0800)
committerEric Dong <eric.dong@intel.com>
Mon, 14 Jan 2019 02:29:29 +0000 (10:29 +0800)
commit7217b8796d2727db76cd6684ba706c3b643b1d62
tree3042362a806e8bf1f7863bc74eae6de7e03cf410
parenta6416d91c32e785259a8c07e1e2b767b754965b5
UefiCpuPkg/RegisterCpuFeaturesLib: Avoid AP calls PeiService.

V3:
   Define union to specify the ppi or protocol.

V2:
1. Initialize CpuFeaturesData->MpService in CpuInitDataInitialize
   and make this function been called at the begin of the
   initialization.
2. let all other functions use CpuFeaturesData->MpService install
   of locate the protocol itself.

V1:
GetProcessorIndex function calls GetMpPpi to get the MP Ppi.
Ap will calls GetProcessorIndex function which final let AP calls
PeiService.

This patch avoid GetProcessorIndex call PeiService.

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1411

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
UefiCpuPkg/Library/RegisterCpuFeaturesLib/CpuFeaturesInitialize.c
UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c
UefiCpuPkg/Library/RegisterCpuFeaturesLib/PeiRegisterCpuFeaturesLib.c
UefiCpuPkg/Library/RegisterCpuFeaturesLib/RegisterCpuFeatures.h