/* Used for BSP to release all APs. Performs an atomic compare exchange operation to release semaphore for each AP.  */
VOID ReleaseAllAPs(VOID)
/* Used for BSP to release all APs. Performs an atomic compare exchange operation to release semaphore for each AP.  */
VOID ReleaseAllAPs(VOID)
{
  UINTN  Index;
  for (Index = 0; Index < mMaxNumberOfCpus; Index++) {
    if (IsPresentAp (Index)) {
      SmmCpuSyncReleaseOneAp (mSmmMpSyncData->SyncContext, Index, gSmmCpuPrivate->SmmCoreEntryContext.CurrentlyExecutingCpu);
    }
  }
}