From: Leif Lindholm <leif.lindholm@linaro.org>
To: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: edk2-devel@lists.01.org
Subject: Re: [PATCH] ArmPlatformPkg: remove ArmGetCpuCountPerCluster () from ArmPlatformLib
Date: Fri, 24 Nov 2017 17:04:45 +0000 [thread overview]
Message-ID: <20171124170445.gd2kzjhazdwwwmjw@bivouac.eciton.net> (raw)
In-Reply-To: <20171115142048.9928-1-ard.biesheuvel@linaro.org>
On Wed, Nov 15, 2017 at 02:20:48PM +0000, Ard Biesheuvel wrote:
> 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>
I'm thinking this is technically a bit iffy. But the less iffy way
would be to add a local .h file to hold the prototype, which feels a
bit crazy for a transitional thing. So:
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
> ---
>
> This is another prerequisite of the edk2-platforms series I am about to
> post. After that, I will follow up with a couple of cleanup patches that
> get rid of a lot of ArmPlatformPkg cruft.
>
> 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
>
next prev parent reply other threads:[~2017-11-24 17:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-15 14:20 [PATCH] ArmPlatformPkg: remove ArmGetCpuCountPerCluster () from ArmPlatformLib Ard Biesheuvel
2017-11-24 17:04 ` Leif Lindholm [this message]
2017-11-25 22:50 ` Ard Biesheuvel
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=20171124170445.gd2kzjhazdwwwmjw@bivouac.eciton.net \
--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