UefiCpuPkg/CpuDxe: StartupAllAPs in parallel mode

SetMemoryAttributes() will sync BSP's MTRRs settings to all APs by StartupAllAPs
service in serial mode. It may caused much performance impact if there are too
much processors in system. This update is to invoke StartupAllAps in parallel
mode. IA32 SDM does suggest to program MTRRs in parallel mode.

Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
Jeff Fan 2016-07-01 15:52:40 +08:00
parent 81f560498b
commit afa7b97154

View File

@ -1,7 +1,7 @@
/** @file /** @file
CPU DXE Module. CPU DXE Module.
Copyright (c) 2008 - 2013, Intel Corporation. All rights reserved.<BR> Copyright (c) 2008 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at which accompanies this distribution. The full text of the license may be found at
@ -422,7 +422,7 @@ CpuSetMemoryAttributes (
MpStatus = MpService->StartupAllAPs ( MpStatus = MpService->StartupAllAPs (
MpService, // This MpService, // This
SetMtrrsFromBuffer, // Procedure SetMtrrsFromBuffer, // Procedure
TRUE, // SingleThread FALSE, // SingleThread
NULL, // WaitEvent NULL, // WaitEvent
0, // TimeoutInMicrosecsond 0, // TimeoutInMicrosecsond
&MtrrSettings, // ProcedureArgument &MtrrSettings, // ProcedureArgument