From 3dfe9247cef656a40407a46af5e2e4e04757a646 Mon Sep 17 00:00:00 2001 From: Chen Fan Date: Sun, 28 Sep 2014 06:22:10 +0000 Subject: [PATCH] EmulatorPkg/MpService: remove redundant switch-case statement we had set the AP procedure in StartupAllAPs(), so do not need to set AP procedure twice. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan Reviewed-by: Jordan Justen git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16186 6f19259b-4bc3-4df7-8a09-765794883524 --- EmulatorPkg/CpuRuntimeDxe/MpService.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/EmulatorPkg/CpuRuntimeDxe/MpService.c b/EmulatorPkg/CpuRuntimeDxe/MpService.c index 5ddd4e761e..d6dd9842aa 100644 --- a/EmulatorPkg/CpuRuntimeDxe/MpService.c +++ b/EmulatorPkg/CpuRuntimeDxe/MpService.c @@ -1015,10 +1015,6 @@ CpuCheckAllAPsStatus ( gThread->MutexUnlock (ProcessorData->StateLock); switch (ProcessorState) { - case CPU_STATE_READY: - SetApProcedure (ProcessorData, gMPSystem.Procedure, gMPSystem.ProcedureArgument); - break; - case CPU_STATE_FINISHED: if (gMPSystem.SingleThread) { Status = GetNextBlockedNumber (&NextNumber); -- 2.39.2