]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: don't shadow the microcode patch twice.
authorEric Dong <eric.dong@intel.com>
Wed, 31 Jul 2019 07:59:26 +0000 (15:59 +0800)
committerEric Dong <eric.dong@intel.com>
Fri, 2 Aug 2019 08:41:19 +0000 (16:41 +0800)
commit89164babecceb03047c4aec8e76c4d838d703095
tree59fd7ff5fd4ac7e872f0a8508e4ab4dd81d1709c
parent5e4ebd9ea5d72c1a2824d23a5dc92c7b50694719
UefiCpuPkg/MpInitLib: don't shadow the microcode patch twice.

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1982

MpInitLibInitialize in MpLib.c will be invoked on both PEI and DXE
CPU code, MicrocodeDetect would be performed twice and copy
Microcode from flash to memory twice as well, which consider as
duplicate work to lead longer boot time.
This patch just use microcode memory copied in PEI phase if exist.

Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
UefiCpuPkg/Library/MpInitLib/MpLib.c