OcCpuLib: Fix FSB frequency calculation on Bonnel CPUs

This commit is contained in:
vit9696 2021-04-05 19:20:24 +03:00
parent 2dae1c1007
commit 717ce18861

View File

@ -306,7 +306,7 @@ SetMaxBusRatioAndMaxBusRatioDiv (
//
// Refer to Intel SDM (MSRs in Processors Based on Intel... table).
//
if (CpuModel >= CPU_MODEL_NEHALEM) {
if (CpuModel >= CPU_MODEL_NEHALEM && CpuModel != CPU_MODEL_BONNELL) {
PlatformInfo.Uint64 = AsmReadMsr64 (MSR_NEHALEM_PLATFORM_INFO);
*MaxBusRatio = (UINT8) PlatformInfo.Bits.MaximumNonTurboRatio;
*MaxBusRatioDiv = 0;