/* Function to compare 2 MP_INFORMATION2_HOB_DATA pointer based on ProcessorIndex. */
INTN EFIAPI MpInformation2HobCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
/* Function to compare 2 MP_INFORMATION2_HOB_DATA pointer based on ProcessorIndex. */
INTN EFIAPI MpInformation2HobCompare(IN CONST VOID *Buffer1, IN CONST VOID *Buffer2)
{
  if ((*(MP_INFORMATION2_HOB_DATA **)Buffer1)->ProcessorIndex > (*(MP_INFORMATION2_HOB_DATA **)Buffer2)->ProcessorIndex) {
    return 1;
  } else if ((*(MP_INFORMATION2_HOB_DATA **)Buffer1)->ProcessorIndex < (*(MP_INFORMATION2_HOB_DATA **)Buffer2)->ProcessorIndex) {
    return -1;
  }
  return 0;
}