public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: edk2-devel@lists.01.org, leif.lindholm@linaro.org
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Subject: [PATCH 05/19] ArmPlatformPkg: remove ArmGetCpuCountPerCluster () from ArmPlatformLib
Date: Wed, 15 Nov 2017 16:56:23 +0000	[thread overview]
Message-ID: <20171115165637.31118-6-ard.biesheuvel@linaro.org> (raw)
In-Reply-To: <20171115165637.31118-1-ard.biesheuvel@linaro.org>

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>
---
 ArmPlatformPkg/ArmVExpressPkg/Library/ArmVExpressLibRTSM/RTSM.c | 13 +++++++++++++
 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 d8d1c9ac26dd..11dd7ff1bfb0 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 fe3bc4bb8e6c..77561a3d05b3 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.
-- 
2.11.0



  parent reply	other threads:[~2017-11-15 16:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-15 16:56 [PATCH 00/19] ArmPlatformPkg: remove unused or migrated modules Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 01/19] ArmPkg: remove unused ArmGicSecLib library implementation Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 02/19] ArmPlatformPkg: remove ArmPlatformSecLib definition and implementations Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 03/19] ArmPlatformPkg: remove unused DebugSecExtraActionLib library Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 04/19] ArmPlatformPkg: remove ArmTrustedMonitorLib definition and implementation Ard Biesheuvel
2017-11-15 16:56 ` Ard Biesheuvel [this message]
2017-11-15 16:56 ` [PATCH 06/19] ArmPlatformPkg: remove NorFlashArmVExpressLib Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 07/19] ArmPlatformPkg: remove ArmJunoPkg Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 08/19] ArmPlatformPkg/PL031RealTimeClockLib: drop ArmPlatformSysConfigLib reference Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 09/19] ArmPlatformPkg: remove ArmVExpressPkg Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 10/19] ArmPlatformPkg: remove ArmPlatformSysConfigLib library class Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 11/19] ArmPlatformPkg: remove unused PL301Axi driver Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 12/19] ArmPlatformPkg: remove unused PL35x driver Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 13/19] ArmPlatformPkg: remove PL34xDmc driver Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 14/19] ArmPlatformPkg: remove unused PL310 driver Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 15/19] ArmPlatformPkg: remove unused ArmTrustZone driver Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 16/19] ArmPlatformPkg: remove unused SP804 driver and TimerLib implementation Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 17/19] ArmPlatformPkg: remove unused L2X0CacheLibNull library Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 18/19] ArmPlatformPkg: remove EblCmdLib implementation Ard Biesheuvel
2017-11-15 16:56 ` [PATCH 19/19] ArmPlatformPkg: remove BootMonFs and ArmShellCmdRunAxf Ard Biesheuvel
2017-11-25 11:47 ` [PATCH 00/19] ArmPlatformPkg: remove unused or migrated modules Leif Lindholm
2017-11-26 11:04   ` Ard Biesheuvel
2017-12-04 17:24   ` Leif Lindholm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171115165637.31118-6-ard.biesheuvel@linaro.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox