EmulatorPkg: Change the cpu frequency to a non-zero value

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1686

The valuse of 1234 is a fake value for CPU frequency.

Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Ray Ni <ray.ni@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Zhiguang Liu 2019-04-29 09:07:50 +08:00 committed by Hao A Wu
parent 8522ce2c9f
commit ad9df93770
1 changed files with 4 additions and 1 deletions

View File

@ -238,7 +238,10 @@ CpuUpdateSmbios (
mCpuSmbiosType4.CoreCount = (UINT8) MaxCpus; mCpuSmbiosType4.CoreCount = (UINT8) MaxCpus;
mCpuSmbiosType4.EnabledCoreCount = (UINT8) MaxCpus; mCpuSmbiosType4.EnabledCoreCount = (UINT8) MaxCpus;
mCpuSmbiosType4.ThreadCount = (UINT8) MaxCpus; mCpuSmbiosType4.ThreadCount = (UINT8) MaxCpus;
//
// The value of 1234 is fake value for CPU frequency
//
mCpuSmbiosType4.CurrentSpeed = 1234;
LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mCpuSmbiosType4, mCpuSmbiosType4Strings); LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mCpuSmbiosType4, mCpuSmbiosType4Strings);
} }