/* Worker function to switch the requested AP to be the BSP from that point onward. */
VOID SwitchNewBsp(IN UINTN ProcessorNumber)
/* Worker function to switch the requested AP to be the BSP from that point onward. */
VOID SwitchNewBsp(IN UINTN ProcessorNumber)
{
  EFI_STATUS                Status;
  EFI_MP_SERVICES_PROTOCOL  *MpServices;
  CPU_FEATURES_DATA         *CpuFeaturesData;
  CpuFeaturesData = GetCpuFeaturesData ();
  MpServices      = CpuFeaturesData->MpService.Protocol;
  Status = MpServices->SwitchBSP (
                         MpServices,
                         ProcessorNumber,
                         TRUE
                         );
  ASSERT_EFI_ERROR (Status);
}