summaryrefslogtreecommitdiff
path: root/EmulatorPkg/CpuRuntimeDxe
diff options
context:
space:
mode:
authorChen Fan <chen.fan.fnst@cn.fujitsu.com>2014-07-31 15:45:21 +0000
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>2014-07-31 15:45:21 +0000
commit0dd40e14605814cc661da77ae4102c425cc4476c (patch)
treee2e4d61084c5bb94e8e2f9db851aa2cfb7f5575e /EmulatorPkg/CpuRuntimeDxe
parentf9032449e84e8d85ee1af02f0ddc0c2880446cac (diff)
downloadedk2-platforms-0dd40e14605814cc661da77ae4102c425cc4476c.tar.xz
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
Diffstat (limited to 'EmulatorPkg/CpuRuntimeDxe')
-rw-r--r--EmulatorPkg/CpuRuntimeDxe/MpService.c4
1 files changed, 0 insertions, 4 deletions
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;
}