/* Calculated and stalled the interval time by BSP to check whether the APs have finished. */
UINTN CalculateAndStallInterval(IN UINTN Timeout)
/* Calculated and stalled the interval time by BSP to check whether the APs have finished. */
UINTN CalculateAndStallInterval(IN UINTN Timeout)
{
  UINTN  StallTime;
  if ((Timeout < gPollInterval) && (Timeout != 0)) {
    StallTime = Timeout;
  } else {
    StallTime = gPollInterval;
  }
  gBS->Stall (StallTime);
  return StallTime;
}