Skip to content

Commit

Permalink
REBASE ArmPkg: ArmPsciMpServicesDxe: Fix CPU resource leakage
Browse files Browse the repository at this point in the history
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 <kuqin@microsoft.com>
  • Loading branch information
kuqin12 authored and kenlautner committed Dec 19, 2023
1 parent 31b11c9 commit 324728d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ArmPkg/Drivers/ArmPsciMpServicesDxe/ArmPsciMpServicesDxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,13 @@ StartupThisAP (
return EFI_SUCCESS;
}

// MU_CHANGE: Set the timer anyway, otherwise this AP is spent on this boot if the AP routine timeout.
gBS->SetTimer (
CpuData->CheckThisAPEvent,
TimerPeriodic,
POLL_INTERVAL_US
);

// Blocking
while (TRUE) {
if (GetApState (CpuData) == CpuStateFinished) {
Expand Down

0 comments on commit 324728d

Please sign in to comment.