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>
This commit is contained in:
Jeff Fan 2017-03-27 09:46:18 +08:00
parent 8d5df9d78f
commit 9a5f0e908d
1 changed files with 5 additions and 5 deletions

View File

@ -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;
}
/**