Skip to content

Commit 05caf20

Browse files
kuqin12os-d
authored andcommitted
ArmPkg: ArmPsciMpServicesDxe: Fix CPU resource leakage
This change will fix an issue where the timeout of an AP function will cause this AP never being to accept task again. Signed-off-by: Kun Qin <[email protected]>
1 parent 8bee9b0 commit 05caf20

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c

+7
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,13 @@ StartupThisAP (
754754
return EFI_SUCCESS;
755755
}
756756

757+
// MU_CHANGE: Set the timer anyway, otherwise this AP is spent on this boot if the AP routine timeout.
758+
gBS->SetTimer (
759+
CpuData->CheckThisAPEvent,
760+
TimerPeriodic,
761+
POLL_INTERVAL_US
762+
);
763+
757764
// Blocking
758765
while (TRUE) {
759766
if (GetApState (CpuData) == CpuStateFinished) {

0 commit comments

Comments
 (0)