/* Worker function returns the firmware usable variable MTRR count for the CPU. */
UINT32 GetFirmwareVariableMtrrCountWorker(VOID)
/* Worker function returns the firmware usable variable MTRR count for the CPU. */
UINT32 GetFirmwareVariableMtrrCountWorker(VOID)
{
  UINT32  VariableMtrrCount;
  UINT32  ReservedMtrrNumber;
  VariableMtrrCount  = GetVariableMtrrCountWorker ();
  ReservedMtrrNumber = PcdGet32 (PcdCpuNumberOfReservedVariableMtrrs);
  if (VariableMtrrCount < ReservedMtrrNumber) {
    return 0;
  }
  return VariableMtrrCount - ReservedMtrrNumber;
}