[edk2-devel] [Patch V2] EmulatorPkg: Change the cpu frequency to a non-zero value

Ni, Ray ray.ni at intel.com
Mon May 6 02:34:36 UTC 2019


Reviewed-by: Ray Ni <ray.ni at intel.com>

> -----Original Message-----
> From: devel at edk2.groups.io [mailto:devel at edk2.groups.io] On Behalf Of
> Zhiguang Liu
> Sent: Monday, May 6, 2019 10:21 AM
> To: devel at edk2.groups.io
> Cc: Justen, Jordan L <jordan.l.justen at intel.com>; Andrew Fish
> <afish at apple.com>; Ni, Ray <ray.ni at intel.com>
> Subject: [edk2-devel] [Patch V2] 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 at intel.com>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Andrew Fish <afish at apple.com>
> Cc: Ray Ni <ray.ni at intel.com>
> ---
>  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.21.0.windows.1
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#40016): https://edk2.groups.io/g/devel/message/40016
Mute This Topic: https://groups.io/mt/31515876/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list