From a60eecec64175466fc6d22d8bc504eabff113363 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 20 Nov 2015 08:22:46 +0000 Subject: UefiCpuPkg/CpuDxe: Don't use gBS->Stall The CpuDxe driver may run before the gEfiMetronomeArchProtocolGuid protocol is installed. gBS->Stall does not work until this arch protocol is installed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen Reviewed-by: Jeff Fan Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18914 6f19259b-4bc3-4df7-8a09-765794883524 (cherry picked from commit f73dd6f5bb31aed6097bcb4991fc04b542fc3911) --- UefiCpuPkg/CpuDxe/CpuMp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'UefiCpuPkg/CpuDxe/CpuMp.c') diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index 04c2f1f0ac..98fdfdf5e0 100644 --- a/UefiCpuPkg/CpuDxe/CpuMp.c +++ b/UefiCpuPkg/CpuDxe/CpuMp.c @@ -801,7 +801,7 @@ StartupAllAPs ( goto Done; } - gBS->Stall (gPollInterval); + MicroSecondDelay (gPollInterval); mMpSystemData.Timeout -= gPollInterval; } @@ -987,7 +987,7 @@ StartupThisAP ( return EFI_TIMEOUT; } - gBS->Stall (gPollInterval); + MicroSecondDelay (gPollInterval); CpuData->Timeout -= gPollInterval; } @@ -1755,7 +1755,7 @@ InitializeMpSupport ( if (CheckAllAPsSleeping ()) { break; } - gBS->Stall (gPollInterval); + MicroSecondDelay (gPollInterval); Timeout += gPollInterval; } while (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds)); ASSERT (Timeout <= PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds)); -- cgit v1.2.3