]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg/CpuDxe: StartupAllAPs in parallel mode
authorJeff Fan <jeff.fan@intel.com>
Fri, 1 Jul 2016 07:52:40 +0000 (15:52 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 20 Jul 2016 03:13:25 +0000 (11:13 +0800)
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>
UefiCpuPkg/CpuDxe/CpuDxe.c

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