Skip to content

Commit

Permalink
OcCpuLib: Fix FSB frequency calculation on Bonnel CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Apr 5, 2021
1 parent 2dae1c1 commit 717ce18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/OcCpuLib/OcCpuLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 717ce18

Please sign in to comment.