From 717ce1886166b4cc7cca6d2bf1acb8ac3749cb78 Mon Sep 17 00:00:00 2001 From: vit9696 Date: Mon, 5 Apr 2021 19:20:24 +0300 Subject: [PATCH] OcCpuLib: Fix FSB frequency calculation on Bonnel CPUs --- Library/OcCpuLib/OcCpuLib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/OcCpuLib/OcCpuLib.c b/Library/OcCpuLib/OcCpuLib.c index 4cb51e37fec..06d358c90c5 100755 --- a/Library/OcCpuLib/OcCpuLib.c +++ b/Library/OcCpuLib/OcCpuLib.c @@ -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;