mirror of https://github.com/acidanthera/audk.git
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 <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@16186 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
5152f6426c
commit
3dfe9247ce
|
@ -1015,10 +1015,6 @@ CpuCheckAllAPsStatus (
|
||||||
gThread->MutexUnlock (ProcessorData->StateLock);
|
gThread->MutexUnlock (ProcessorData->StateLock);
|
||||||
|
|
||||||
switch (ProcessorState) {
|
switch (ProcessorState) {
|
||||||
case CPU_STATE_READY:
|
|
||||||
SetApProcedure (ProcessorData, gMPSystem.Procedure, gMPSystem.ProcedureArgument);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case CPU_STATE_FINISHED:
|
case CPU_STATE_FINISHED:
|
||||||
if (gMPSystem.SingleThread) {
|
if (gMPSystem.SingleThread) {
|
||||||
Status = GetNextBlockedNumber (&NextNumber);
|
Status = GetNextBlockedNumber (&NextNumber);
|
||||||
|
|
Loading…
Reference in New Issue