Skip to content

Commit

Permalink
UefiCpuPkg/RegisterCpuFeaturesLib: Remove static type
Browse files Browse the repository at this point in the history
Using one specific name for global variable to save MP services protocol
pointer.

Cc: Feng Tian <[email protected]>
Cc: Michael Kinney <[email protected]>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <[email protected]>
Reviewed-by: Feng Tian <[email protected]>
  • Loading branch information
vanjeff committed Mar 28, 2017
1 parent 8d5df9d commit 9a5f0e9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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;
}

/**
Expand Down

0 comments on commit 9a5f0e9

Please sign in to comment.