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: ray.ni@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Sun, 05 May 2019 19:34:51 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 May 2019 19:34:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,435,1549958400"; d="scan'208";a="148600121" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga003.jf.intel.com with ESMTP; 05 May 2019 19:34:51 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 5 May 2019 19:34:39 -0700 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.33]) by shsmsx102.ccr.corp.intel.com ([169.254.2.249]) with mapi id 14.03.0415.000; Mon, 6 May 2019 10:34:37 +0800 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Liu, Zhiguang" CC: "Justen, Jordan L" , Andrew Fish Subject: Re: [edk2-devel] [Patch V2] EmulatorPkg: Change the cpu frequency to a non-zero value Thread-Topic: [edk2-devel] [Patch V2] EmulatorPkg: Change the cpu frequency to a non-zero value Thread-Index: AQHVA7KBQY8aAD3CWkqpu6qECw0F7KZdYMYw Date: Mon, 6 May 2019 02:34:36 +0000 Deferred-Delivery: Mon, 6 May 2019 02:34:00 +0000 Message-ID: <734D49CCEBEEF84792F5B80ED585239D5C12AC3B@SHSMSX104.ccr.corp.intel.com> References: <20190506022048.5012-1-zhiguang.liu@intel.com> In-Reply-To: <20190506022048.5012-1-zhiguang.liu@intel.com> Accept-Language: en-US, zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWVjY2JhY2QtYzJiOC00ZjVmLWEwNjMtNDFiNjVmMzBlMThjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiZm84RU9IY0VHaUhjNzJQRjZuRWhwZDR1TDRTaldiVnNuSnJOUjk1NVY4Z0g4RnRYb1V5MmtTSjU1MU50NGZaZiJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.600.7 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Return-Path: ray.ni@intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Zhiguang Liu > Sent: Monday, May 6, 2019 10:21 AM > To: devel@edk2.groups.io > Cc: Justen, Jordan L ; Andrew Fish > ; Ni, Ray > Subject: [edk2-devel] [Patch V2] EmulatorPkg: Change the cpu frequency t= o a > non-zero value >=20 > REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3D1686 >=20 > The valuse of 1234 is a fake value for CPU frequency. >=20 > 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(-) >=20 > 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 =3D (UINT8) MaxCpus; > mCpuSmbiosType4.EnabledCoreCount =3D (UINT8) MaxCpus; > mCpuSmbiosType4.ThreadCount =3D (UINT8) MaxCpus; > - > + // > + // The value of 1234 is fake value for CPU frequency > + // > + mCpuSmbiosType4.CurrentSpeed =3D 1234; > LogSmbiosData ((EFI_SMBIOS_TABLE_HEADER *)&mCpuSmbiosType4, > mCpuSmbiosType4Strings); > } >=20 > -- > 2.21.0.windows.1 >=20 >=20 >=20