summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-11-20 08:22:46 +0000
committerHao Wu <hao.a.wu@intel.com>2016-02-24 16:52:32 +0800
commita60eecec64175466fc6d22d8bc504eabff113363 (patch)
tree3d870d893c42e4ddd06e029b278659ee496c5bf6
parent62435c267fa66b835bab6ec5db682d8a77fdc2bb (diff)
downloadedk2-platforms-a60eecec64175466fc6d22d8bc504eabff113363.tar.xz
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 <jordan.l.justen@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18914 6f19259b-4bc3-4df7-8a09-765794883524 (cherry picked from commit f73dd6f5bb31aed6097bcb4991fc04b542fc3911)
-rw-r--r--UefiCpuPkg/CpuDxe/CpuMp.c6
1 files changed, 3 insertions, 3 deletions
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));