public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] EmulatorPkg: Change the cpu current speed from 0 to a non-zero value
@ 2019-04-29  2:23 zhiguang.liu
  2019-05-05  3:25 ` Ni, Ray
  0 siblings, 1 reply; 2+ messages in thread
From: zhiguang.liu @ 2019-04-29  2:23 UTC (permalink / raw)
  To: devel; +Cc: Jordan Justen, Andrew Fish, Ray Ni

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

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>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] EmulatorPkg: Change the cpu current speed from 0 to a non-zero value
  2019-04-29  2:23 [PATCH] EmulatorPkg: Change the cpu current speed from 0 to a non-zero value zhiguang.liu
@ 2019-05-05  3:25 ` Ni, Ray
  0 siblings, 0 replies; 2+ messages in thread
From: Ni, Ray @ 2019-05-05  3:25 UTC (permalink / raw)
  To: Liu, Zhiguang, devel@edk2.groups.io; +Cc: Justen, Jordan L, Andrew Fish

Please add comments above the CurrentSpeed assignment to
explain the 1234 is a fake value for CPU frequency.

> -----Original Message-----
> From: Liu, Zhiguang <zhiguang.liu@intel.com>
> Sent: Monday, April 29, 2019 10:24 AM
> To: devel@edk2.groups.io
> Cc: Justen, Jordan L <jordan.l.justen@intel.com>; Andrew Fish
> <afish@apple.com>; Ni, Ray <ray.ni@intel.com>
> 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 <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>
> ---
>  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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-05-05  3:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-29  2:23 [PATCH] EmulatorPkg: Change the cpu current speed from 0 to a non-zero value zhiguang.liu
2019-05-05  3:25 ` Ni, Ray

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox