diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-13 13:43:37 +0000 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2017-11-25 22:49:06 +0000 |
commit | 4cebe0453fea40330afb6b8f2372287e723e6e3f (patch) | |
tree | 1fbce9165816edca7947a13bd275e42f27945f21 /ArmPlatformPkg | |
parent | a64d5872940b63ec8d1dfd89a1d0e48ed57346b6 (diff) | |
download | edk2-4cebe0453fea40330afb6b8f2372287e723e6e3f.zip edk2-4cebe0453fea40330afb6b8f2372287e723e6e3f.tar.gz edk2-4cebe0453fea40330afb6b8f2372287e723e6e3f.tar.bz2 |
ArmPlatformPkg: remove ArmGetCpuCountPerCluster () from ArmPlatformLib
The only user of ArmPlatformLib's ArmGetCpuCountPerCluster () is itself
an ArmPlatformLib implementation, i.e., ArmVExpressLibRTSM.
Given that we'd prefer to get rid of ArmPlatformLib entirely, let's
remove ArmGetCpuCountPerCluster () from the API as a first step.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r-- | ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c | 13 | ||||
-rw-r--r-- | ArmPlatformPkg/Include/Library/ArmPlatformLib.h | 13 |
2 files changed, 13 insertions, 13 deletions
diff --git a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c index d8d1c9a..11dd7ff 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c +++ b/ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c @@ -21,6 +21,19 @@ #include <ArmPlatform.h>
+/**
+ Return the core per cluster. The method may differ per core type
+
+ This function might be called from assembler before any stack is set.
+
+ @return Return the core count per cluster
+
+**/
+UINTN
+ArmGetCpuCountPerCluster (
+ VOID
+ );
+
ARM_CORE_INFO mVersatileExpressMpCoreInfoTable[] = {
{
// Cluster 0, Core 0
diff --git a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h index fe3bc4b..77561a3 100644 --- a/ArmPlatformPkg/Include/Library/ArmPlatformLib.h +++ b/ArmPlatformPkg/Include/Library/ArmPlatformLib.h @@ -41,19 +41,6 @@ typedef struct { } ARM_SYSTEM_MEMORY_REGION_DESCRIPTOR;
/**
- Return the core per cluster. The method may differ per core type
-
- This function might be called from assembler before any stack is set.
-
- @return Return the core count per cluster
-
-**/
-UINTN
-ArmGetCpuCountPerCluster (
- VOID
- );
-
-/**
Return the core position from the value of its MpId register
This function returns the core position from the position 0 in the processor.
|