diff mbox

[Linaro-uefi,08/14] Platforms/AMD/AmdStyxHelperLib: remove AmdStyxGetArmProcessorTable () function

Message ID 1462882313-7637-9-git-send-email-ard.biesheuvel@linaro.org
State New
Headers show

Commit Message

Ard Biesheuvel May 10, 2016, 12:11 p.m. UTC
This function is no longer used, and returns a UEFI configuration table
that we would like to get rid of. So remove it.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
---
 Platforms/AMD/Styx/Common/AmdStyxHelperLib.h                   |  5 -----
 Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c | 18 ------------------
 2 files changed, 23 deletions(-)
diff mbox

Patch

diff --git a/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h b/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h
index c4598fe7d108..640aba317a69 100644
--- a/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h
+++ b/Platforms/AMD/Styx/Common/AmdStyxHelperLib.h
@@ -34,11 +34,6 @@  AmdStyxGetPmuSpiFromMpId (
   UINT32 *PmuSpi
   );
 
-ARM_PROCESSOR_TABLE *
-AmdStyxGetArmProcessorTable(
-  VOID
-  );
-
 ARM_CORE_INFO *
 AmdStyxGetArmCoreInfoTable (
   OUT UINTN   *NumEntries
diff --git a/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c b/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c
index 6e0ed35278e4..25fd0e4b12a4 100644
--- a/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c
+++ b/Platforms/AMD/Styx/Library/AmdStyxHelperLib/AmdStyxHelperLib.c
@@ -63,24 +63,6 @@  AmdStyxGetPmuSpiFromMpId (
   return EFI_INVALID_PARAMETER; 
 }
 
-
-ARM_PROCESSOR_TABLE *
-AmdStyxGetArmProcessorTable(
-  VOID
-  )
-{
-  UINTN Index;
-
-  for (Index=0; Index < gST->NumberOfTableEntries; Index++) {
-    // Check for correct GUID type
-    if (CompareGuid (&gArmMpCoreInfoGuid, &(gST->ConfigurationTable[Index].VendorGuid))) {
-      return (ARM_PROCESSOR_TABLE *)gST->ConfigurationTable[Index].VendorTable;
-    }
-  }
-
-  return NULL;
-}
-
 ARM_CORE_INFO *
 AmdStyxGetArmCoreInfoTable (
   OUT UINTN   *NumEntries