From 262128e5ab9edda666586c7dda3f2b0f53c0c557 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Tue, 1 Nov 2016 10:45:37 +0800 Subject: [PATCH] UefiCpuPkg/LocalApicLib: Rename GetProcessorLocation() GetProcessorLocation() is too generic and will conflict with the API defined in Galileo Board Software Package v1.0.0. This update is just to rename GetProcessorLocation() to one specific name GetProcessorLocationByApicId(). Contributed-under: TianoCore Contribution Agreement 1.0 Cc: Leo Duran Cc: Michael Kinney Cc: Feng Tian Signed-off-by: Jeff Fan Reviewed-by: Michael Kinney Reviewed-by: Leo Duran --- UefiCpuPkg/Include/Library/LocalApicLib.h | 2 +- UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 2 +- UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 2 +- UefiCpuPkg/Library/MpInitLib/MpLib.c | 2 +- UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/UefiCpuPkg/Include/Library/LocalApicLib.h b/UefiCpuPkg/Include/Library/LocalApicLib.h index fae780d583..a1611f17dd 100644 --- a/UefiCpuPkg/Include/Library/LocalApicLib.h +++ b/UefiCpuPkg/Include/Library/LocalApicLib.h @@ -424,7 +424,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID -GetProcessorLocation( +GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, OUT UINT32 *Core OPTIONAL, diff --git a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c index 5976403456..8384913bf4 100644 --- a/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c @@ -955,7 +955,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID -GetProcessorLocation( +GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, OUT UINT32 *Core OPTIONAL, diff --git a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c index 91ffd24e6e..1e3c03905c 100644 --- a/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c +++ b/UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c @@ -1050,7 +1050,7 @@ GetApicMsiValue ( @param[out] Thread Returns the processor thread ID. **/ VOID -GetProcessorLocation( +GetProcessorLocationByApicId ( IN UINT32 InitialApicId, OUT UINT32 *Package OPTIONAL, OUT UINT32 *Core OPTIONAL, diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c index f205b6bad4..56b870e527 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c @@ -1325,7 +1325,7 @@ MpInitLibGetProcessorInfo ( // // Get processor location information // - GetProcessorLocation ( + GetProcessorLocationByApicId ( CpuMpData->CpuData[ProcessorNumber].ApicId, &ProcessorInfoBuffer->Location.Package, &ProcessorInfoBuffer->Location.Core, diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c index 93ebb9ec73..29f3a58939 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c @@ -161,7 +161,7 @@ SmmAddProcessor ( gSmmCpuPrivate->ProcessorInfo[Index].ProcessorId == INVALID_APIC_ID) { gSmmCpuPrivate->ProcessorInfo[Index].ProcessorId = ProcessorId; gSmmCpuPrivate->ProcessorInfo[Index].StatusFlag = 0; - GetProcessorLocation ( + GetProcessorLocationByApicId ( (UINT32)ProcessorId, &gSmmCpuPrivate->ProcessorInfo[Index].Location.Package, &gSmmCpuPrivate->ProcessorInfo[Index].Location.Core, -- 2.39.2