/* This service will invoke MP service to perform CPU features initialization on BSP/APs per user configuration. */
VOID EFIAPI CpuFeaturesInitialize(VOID)
/* This service will invoke MP service to perform CPU features initialization on BSP/APs per user configuration. */
VOID EFIAPI CpuFeaturesInitialize(VOID)
{
  CPU_FEATURES_DATA  *CpuFeaturesData;
  UINTN              OldBspNumber;
  CpuFeaturesData = GetCpuFeaturesData ();
  OldBspNumber               = GetProcessorIndex (CpuFeaturesData);
  CpuFeaturesData->BspNumber = OldBspNumber;
  StartupAllCPUsWorker (SetProcessorRegister);
  if (CpuFeaturesData->BspNumber != OldBspNumber) {
    SwitchNewBsp (CpuFeaturesData->BspNumber);
  }
}