summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg
diff options
context:
space:
mode:
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
index 305bffa9bc..57e788c01b 100644
--- a/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
+++ b/UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c
@@ -433,26 +433,6 @@ ResetTokens (
VOID
)
{
- LIST_ENTRY *Link;
- PROCEDURE_TOKEN *ProcToken;
-
- Link = GetFirstNode (&gSmmCpuPrivate->TokenList);
- while (!IsNull (&gSmmCpuPrivate->TokenList, Link)) {
- ProcToken = PROCEDURE_TOKEN_FROM_LINK (Link);
-
- ProcToken->RunningApCount = 0;
-
- //
- // Check the spinlock status and release it if not released yet.
- //
- if (!AcquireSpinLockOrFail(ProcToken->SpinLock)) {
- DEBUG((DEBUG_ERROR, "Risk::SpinLock still not released!"));
- }
- ReleaseSpinLock (ProcToken->SpinLock);
-
- Link = GetNextNode (&gSmmCpuPrivate->TokenList, Link);
- }
-
//
// Reset the FirstFreeToken to the beginning of token list upon exiting SMI.
//