diff options
author | Zhiguang Liu <zhiguang.liu@intel.com> | 2019-04-29 09:07:50 +0800 |
---|---|---|
committer | Hao A Wu <hao.a.wu@intel.com> | 2019-05-10 10:48:51 +0800 |
commit | ad9df9377028c90154608de5efef628454cb6f83 (patch) | |
tree | 28109c1fda769fb6f086a271dbe4cb6b8115c325 /EmulatorPkg/CpuRuntimeDxe | |
parent | 8522ce2c9f88c9e06a84544a98589e3038a627b6 (diff) | |
download | edk2-ad9df9377028c90154608de5efef628454cb6f83.zip edk2-ad9df9377028c90154608de5efef628454cb6f83.tar.gz edk2-ad9df9377028c90154608de5efef628454cb6f83.tar.bz2 |
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>
Diffstat (limited to 'EmulatorPkg/CpuRuntimeDxe')
-rw-r--r-- | EmulatorPkg/CpuRuntimeDxe/Cpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/EmulatorPkg/CpuRuntimeDxe/Cpu.c b/EmulatorPkg/CpuRuntimeDxe/Cpu.c index e997b39..00e9301 100644 --- a/EmulatorPkg/CpuRuntimeDxe/Cpu.c +++ b/EmulatorPkg/CpuRuntimeDxe/Cpu.c @@ -238,7 +238,10 @@ CpuUpdateSmbios ( mCpuSmbiosType4.CoreCount = (UINT8) MaxCpus;
mCpuSmbiosType4.EnabledCoreCount = (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);
}
|