/* This service lets the caller enable or disable an AP from this point onward. This service may only be called from the BSP. */
EFI_STATUS EFIAPI MpInitLibEnableDisableAP(IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
/* This service lets the caller enable or disable an AP from this point onward. This service may only be called from the BSP. */
EFI_STATUS EFIAPI MpInitLibEnableDisableAP(IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
{
  EFI_STATUS  Status;
  BOOLEAN     TempStopCheckState;
  TempStopCheckState = FALSE;
  if (!mStopCheckAllApsStatus) {
    mStopCheckAllApsStatus = TRUE;
    TempStopCheckState     = TRUE;
  }
  Status = EnableDisableApWorker (ProcessorNumber, EnableAP, HealthFlag);
  if (TempStopCheckState) {
    mStopCheckAllApsStatus = FALSE;
  }
  return Status;
}