From ad9df9377028c90154608de5efef628454cb6f83 Mon Sep 17 00:00:00 2001 From: Zhiguang Liu Date: Mon, 29 Apr 2019 09:07:50 +0800 Subject: [PATCH] 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 Cc: Jordan Justen Cc: Andrew Fish Cc: Ray Ni Reviewed-by: Ray Ni --- EmulatorPkg/CpuRuntimeDxe/Cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/EmulatorPkg/CpuRuntimeDxe/Cpu.c b/EmulatorPkg/CpuRuntimeDxe/Cpu.c index e997b39f41..00e93016af 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); } -- 2.39.2