Skip to content

Commit

Permalink
[CHERRY-PICK] UefiCpuPkg/PiSmmCpuDxeSmm: Simplify RunningApCount decr…
Browse files Browse the repository at this point in the history
…ement

To decrease the count of RunningApCount, InterlockedDecrement is
enough to achieve that.

This patch is to simplify RunningApCount decrement.

Cc: Laszlo Ersek <[email protected]>
Cc: Eric Dong <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Zeng Star <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Rahul Kumar <[email protected]>
Signed-off-by: Jiaxin Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
(cherry picked from commit ff9bd3f)
  • Loading branch information
jiaxinwu authored and apop5 committed Mar 19, 2024
1 parent d421e2b commit bb71205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
Original file line number Diff line number Diff line change
Expand Up @@ -1325,7 +1325,7 @@ InternalSmmStartupAllAPs (
// Decrease the count to mark this processor(AP or BSP) as finished.
//
if (ProcToken != NULL) {
WaitForSemaphore (&ProcToken->RunningApCount);
InterlockedDecrement (&ProcToken->RunningApCount);
}
}
}
Expand Down

0 comments on commit bb71205

Please sign in to comment.