summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2015-11-20 08:22:46 +0000
committerjljusten <jljusten@Edk2>2015-11-20 08:22:46 +0000
commitf73dd6f5bb31aed6097bcb4991fc04b542fc3911 (patch)
tree8364238c0d3419a4b1857e357d05debdf3612233 /UefiCpuPkg
parent02018760ca5eaeb5676a86784d724599369d5b52 (diff)
downloadedk2-platforms-f73dd6f5bb31aed6097bcb4991fc04b542fc3911.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
Diffstat (limited to 'UefiCpuPkg')
-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));