From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: zhiguang.liu@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Sun, 05 May 2019 19:22:05 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2019 19:22:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,435,1549958400"; d="scan'208";a="146645359" Received: from fieedk002.ccr.corp.intel.com ([10.239.157.133]) by fmsmga008.fm.intel.com with ESMTP; 05 May 2019 19:22:03 -0700 From: "Zhiguang Liu" To: devel@edk2.groups.io Cc: Jordan Justen , Andrew Fish , Ray Ni Subject: [Patch V2] EmulatorPkg: Change the cpu frequency to a non-zero value Date: Mon, 6 May 2019 10:20:48 +0800 Message-Id: <20190506022048.5012-1-zhiguang.liu@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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