/* Worker function returns the variable MTRR count for the CPU. */
UINT32 GetVariableMtrrCountWorker(VOID)
/* Worker function returns the variable MTRR count for the CPU. */
UINT32 GetVariableMtrrCountWorker(VOID)
{
  MSR_IA32_MTRRCAP_REGISTER  MtrrCap;
  MtrrCap.Uint64 = AsmReadMsr64 (MSR_IA32_MTRRCAP);
  ASSERT (MtrrCap.Bits.VCNT <= ARRAY_SIZE (((MTRR_VARIABLE_SETTINGS *)0)->Mtrr));
  return MtrrCap.Bits.VCNT;
}