UefiCpuPkg/MpInitLib: Use BSP uCode for APs if possible.

Search uCode costs much time, if AP has same processor type
with BSP, AP can use BSP saved uCode info to get better performance.

This change enables this solution.

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>
Acked-by: Laszlo Ersek <lersek@redhat.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
Eric Dong
2018-07-11 19:07:28 +08:00
parent 6936ee0342
commit 2a08913443
3 changed files with 45 additions and 7 deletions

View File

@@ -410,7 +410,7 @@ ApInitializeSync (
//
// Load microcode on AP
//
MicrocodeDetect (CpuMpData);
MicrocodeDetect (CpuMpData, FALSE);
//
// Sync BSP's MTRR table to AP
//
@@ -1658,7 +1658,7 @@ MpInitLibInitialize (
//
// Load Microcode on BSP
//
MicrocodeDetect (CpuMpData);
MicrocodeDetect (CpuMpData, TRUE);
//
// Store BSP's MTRR setting
//