diff options
author | Jeff Fan <jeff.fan@intel.com> | 2017-03-27 09:46:18 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2017-03-28 08:59:58 +0800 |
commit | 9a5f0e908db15479484d7acca9a77843fc519ab9 (patch) | |
tree | 6e894038446f5735bb975d5f6fafb99208f6e375 | |
parent | 8d5df9d78fe46f5edad740fe321d3fab17edb553 (diff) | |
download | edk2-platforms-9a5f0e908db15479484d7acca9a77843fc519ab9.tar.xz |
UefiCpuPkg/RegisterCpuFeaturesLib: Remove static type
Using one specific name for global variable to save MP services protocol
pointer.
Cc: Feng Tian <feng.tian@intel.com>
Cc: Michael Kinney <michael.d.kinney@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
-rw-r--r-- | UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c index c49f556947..74c658a16b 100644 --- a/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c +++ b/UefiCpuPkg/Library/RegisterCpuFeaturesLib/DxeRegisterCpuFeaturesLib.c @@ -19,7 +19,7 @@ #include "RegisterCpuFeatures.h" CPU_FEATURES_DATA mCpuFeaturesData = {0}; -static EFI_MP_SERVICES_PROTOCOL *mMpServices = NULL; +EFI_MP_SERVICES_PROTOCOL *mCpuFeaturesMpServices = NULL; /** Worker function to get CPU_FEATURES_DATA pointer. @@ -46,20 +46,20 @@ GetMpProtocol ( { EFI_STATUS Status; - if (mMpServices == NULL) { + if (mCpuFeaturesMpServices == NULL) { // // Get MP Services Protocol // Status = gBS->LocateProtocol ( &gEfiMpServiceProtocolGuid, NULL, - (VOID **)&mMpServices + (VOID **)&mCpuFeaturesMpServices ); ASSERT_EFI_ERROR (Status); } - ASSERT (mMpServices != NULL); - return mMpServices; + ASSERT (mCpuFeaturesMpServices != NULL); + return mCpuFeaturesMpServices; } /** |