diff --git a/EmulatorPkg/CpuRuntimeDxe/MpService.c b/EmulatorPkg/CpuRuntimeDxe/MpService.c index 9ce23c0898..d79abd2989 100644 --- a/EmulatorPkg/CpuRuntimeDxe/MpService.c +++ b/EmulatorPkg/CpuRuntimeDxe/MpService.c @@ -865,8 +865,6 @@ CpuMpServicesEnableDisableAP ( return EFI_UNSUPPORTED; } - gThread->MutexLock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); - if (EnableAP) { if ((gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag & PROCESSOR_ENABLED_BIT) == 0 ) { gMPSystem.NumberOfEnabledProcessors++; @@ -884,8 +882,6 @@ CpuMpServicesEnableDisableAP ( gMPSystem.ProcessorData[ProcessorNumber].Info.StatusFlag |= (*HealthFlag & PROCESSOR_HEALTH_STATUS_BIT); } - gThread->MutexUnlock (gMPSystem.ProcessorData[ProcessorNumber].StateLock); - return EFI_SUCCESS; }