mirror of https://github.com/acidanthera/audk.git
ArmPkg/ArmPsciMpServices: Add EFI_NOT_READY return
Add EFI_NOT_READY return if the CPU can not be enabled because the processor is already on. This can occur in normal use if the CPU is still being turned off from a previous call when this is called again. Signed-off-by: Jeff Brasen <jbrasen@nvidia.com> Reviewed-by: Rebecca Cran <rebecca@bsdio.com>
This commit is contained in:
parent
772ec92577
commit
01e1bc2894
|
@ -103,7 +103,9 @@ DispatchCpu (
|
|||
|
||||
ArmCallSmc (&Args);
|
||||
|
||||
if (Args.Arg0 != ARM_SMC_PSCI_RET_SUCCESS) {
|
||||
if (Args.Arg0 == ARM_SMC_PSCI_RET_ALREADY_ON) {
|
||||
Status = EFI_NOT_READY;
|
||||
} else if (Args.Arg0 != ARM_SMC_PSCI_RET_SUCCESS) {
|
||||
DEBUG ((DEBUG_ERROR, "PSCI_CPU_ON call failed: %d\n", Args.Arg0));
|
||||
Status = EFI_DEVICE_ERROR;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue