Please add comments above the CurrentSpeed assignment to explain the 1234 is a fake value for CPU frequency.
> -----Original Message----- > From: Liu, Zhiguang <[email protected]> > Sent: Monday, April 29, 2019 10:24 AM > To: [email protected] > Cc: Justen, Jordan L <[email protected]>; Andrew Fish > <[email protected]>; Ni, Ray <[email protected]> > Subject: [PATCH] EmulatorPkg: Change the cpu current speed from 0 to a > non-zero value > > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1686 > > Signed-off-by: Zhiguang Liu <[email protected]> > Cc: Jordan Justen <[email protected]> > Cc: Andrew Fish <[email protected]> > Cc: Ray Ni <[email protected]> > --- > EmulatorPkg/CpuRuntimeDxe/Cpu.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/EmulatorPkg/CpuRuntimeDxe/Cpu.c > b/EmulatorPkg/CpuRuntimeDxe/Cpu.c index e997b39f41..3093a7b642 > 100644 > --- a/EmulatorPkg/CpuRuntimeDxe/Cpu.c > +++ b/EmulatorPkg/CpuRuntimeDxe/Cpu.c > @@ -238,7 +238,7 @@ CpuUpdateSmbios ( > mCpuSmbiosType4.CoreCount = (UINT8) MaxCpus; > mCpuSmbiosType4.EnabledCoreCount = (UINT8) MaxCpus; > mCpuSmbiosType4.ThreadCount = (UINT8) MaxCpus; > - > + mCpuSmbiosType4.CurrentSpeed = 1234; > LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mCpuSmbiosType4, > mCpuSmbiosType4Strings); } > > -- > 2.21.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#39988): https://edk2.groups.io/g/devel/message/39988 Mute This Topic: https://groups.io/mt/31379041/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
