Revision: 18825
http://sourceforge.net/p/edk2/code/18825
Author: vanjeff
Date: 2015-11-17 04:51:37 +0000 (Tue, 17 Nov 2015)
Log Message:
-----------
UefiCpuPkg: CpuDxe: Use PCD for AP detection timeout
Use PcdCpuApInitTimeOutInMicroSeconds instead of hardcoded 100ms for
the time to wait for all APs to respond to first INIT SIPI SIPI
wake request.
(Sync patch r18630 from main trunk.)
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <[email protected]>
Cc: Jeff Fan <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Reviewed-by: Jeff Fan <[email protected]>
Revision Links:
--------------
http://sourceforge.net/p/edk2/code/18630
Modified Paths:
--------------
branches/UDK2015/UefiCpuPkg/CpuDxe/ApStartup.c
branches/UDK2015/UefiCpuPkg/CpuDxe/CpuDxe.inf
Modified: branches/UDK2015/UefiCpuPkg/CpuDxe/ApStartup.c
===================================================================
--- branches/UDK2015/UefiCpuPkg/CpuDxe/ApStartup.c 2015-11-17 04:50:47 UTC
(rev 18824)
+++ branches/UDK2015/UefiCpuPkg/CpuDxe/ApStartup.c 2015-11-17 04:51:37 UTC
(rev 18825)
@@ -452,9 +452,9 @@
{
SendInitSipiSipiAllExcludingSelf ((UINT32)(UINTN)(VOID*) StartupCode);
//
- // Wait 100 milliseconds for APs to arrive at the ApEntryPoint routine
+ // Wait for APs to arrive at the ApEntryPoint routine
//
- MicroSecondDelay (100 * 1000);
+ MicroSecondDelay (PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
return EFI_SUCCESS;
}
Modified: branches/UDK2015/UefiCpuPkg/CpuDxe/CpuDxe.inf
===================================================================
--- branches/UDK2015/UefiCpuPkg/CpuDxe/CpuDxe.inf 2015-11-17 04:50:47 UTC
(rev 18824)
+++ branches/UDK2015/UefiCpuPkg/CpuDxe/CpuDxe.inf 2015-11-17 04:51:37 UTC
(rev 18825)
@@ -84,8 +84,9 @@
gEfiSecPlatformInformationPpiGuid ## UNDEFINED # HOB
[Pcd]
- gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES
- gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize ## CONSUMES
+ gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES
+ gUefiCpuPkgTokenSpaceGuid.PcdCpuApStackSize ## CONSUMES
+ gUefiCpuPkgTokenSpaceGuid.PcdCpuApInitTimeOutInMicroSeconds ## CONSUMES
[Depex]
TRUE
------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits