From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.24; helo=mga09.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id DB6B5211D0784 for ; Thu, 28 Feb 2019 21:40:09 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Feb 2019 21:40:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,426,1544515200"; d="scan'208";a="138156448" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.9.125]) by orsmga002.jf.intel.com with ESMTP; 28 Feb 2019 21:40:04 -0800 From: Eric Dong To: edk2-devel@lists.01.org Cc: Ray Ni , Laszlo Ersek Date: Fri, 1 Mar 2019 13:39:53 +0800 Message-Id: <20190301053957.3572-1-eric.dong@intel.com> X-Mailer: git-send-email 2.15.0.windows.1 Subject: [Patch v2 0/4] Simplify CPU Features solution. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2019 05:40:10 -0000 V2 Changes include: 1. Add ASSERT to make sure PcdCpuFeaturesSetting and PcdCpuFeaturesCapability have equal size. 2. Correct comment block on IsCpuFeatureSetInCpuPcd() references "PcdCpuFeaturesSupport". It should reference "CpuBitMask". V1 Changes includes: 1. Optimize PCD PcdCpuFeaturesUserConfiguration 2. Limit useage of PcdCpuFeaturesSupport 3. Remove some useless APIs. Detail explanation please check each patch's introduction. Cc: Ray Ni Cc: Laszlo Ersek Eric Dong (4): UefiCpuPkg/RegisterCpuFeaturesLib: Remove useless functions. UefiCpuPkg/RegisterCpuFeaturesLib: Optimize PCD PcdCpuFeaturesUserConfiguration. UefiCpuPkg/RegisterCpuFeaturesLib: Simplify PcdCpuFeaturesSupport. UefiCpuPkg/RegisterCpuFeaturesLib: Correct comments. .../Include/Library/RegisterCpuFeaturesLib.h | 34 ------ .../RegisterCpuFeaturesLib/CpuFeaturesInitialize.c | 114 ++++++--------------- .../DxeRegisterCpuFeaturesLib.inf | 3 +- .../PeiRegisterCpuFeaturesLib.inf | 3 +- .../RegisterCpuFeaturesLib/RegisterCpuFeatures.h | 2 - .../RegisterCpuFeaturesLib.c | 64 ++---------- UefiCpuPkg/UefiCpuPkg.dec | 9 +- 7 files changed, 45 insertions(+), 184 deletions(-) -- 2.15.0.windows.1