mirror of https://github.com/acidanthera/audk.git
EmulatorPkg/Mpservice: Remove StackLock for Info.StateFlag
Maybe we should add another lock for Info.StateFlag in the future rather than StackLock. at here, we get rid of it first. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15729 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
f9032449e8
commit
0dd40e1460
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue