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
This commit is contained in:
Jordan Justen 2015-11-20 08:22:46 +00:00 committed by jljusten
parent 02018760ca
commit f73dd6f5bb
1 changed files with 3 additions and 3 deletions

View File

@ -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));