From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] ARM: highbank: convert logical CPU numbers to physical numbers
Date: Fri, 11 Nov 2011 09:54:03 -0600 [thread overview]
Message-ID: <4EBD451B.8010900@gmail.com> (raw)
In-Reply-To: <1321009767-19944-1-git-send-email-will.deacon@arm.com>
On 11/11/2011 05:09 AM, Will Deacon wrote:
> This patch uses the new cpu_logical_map() macro for converting logical
> CPU numbers into physical numbers when releasing CPUs during the SMP
> boot and CPU hotplug paths.
>
> Cc: Rob Herring <rob.herring@calxeda.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
> ---
Thanks.
Acked-by: Rob Herring <rob.herring@calxeda.com>
> arch/arm/mach-highbank/highbank.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
> index b82dcf0..88660d5 100644
> --- a/arch/arm/mach-highbank/highbank.c
> +++ b/arch/arm/mach-highbank/highbank.c
> @@ -22,6 +22,7 @@
> #include <linux/of_irq.h>
> #include <linux/of_platform.h>
> #include <linux/of_address.h>
> +#include <linux/smp.h>
>
> #include <asm/cacheflush.h>
> #include <asm/unified.h>
> @@ -72,6 +73,9 @@ static void __init highbank_map_io(void)
>
> void highbank_set_cpu_jump(int cpu, void *jump_addr)
> {
> +#ifdef CONFIG_SMP
> + cpu = cpu_logical_map(cpu);
> +#endif
> writel(BSYM(virt_to_phys(jump_addr)), HB_JUMP_TABLE_VIRT(cpu));
> __cpuc_flush_dcache_area(HB_JUMP_TABLE_VIRT(cpu), 16);
> outer_clean_range(HB_JUMP_TABLE_PHYS(cpu),
prev parent reply other threads:[~2011-11-11 15:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-11 11:09 [PATCH v2] ARM: highbank: convert logical CPU numbers to physical numbers Will Deacon
2011-11-11 15:54 ` Rob Herring [this message]
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-all 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=4EBD451B.8010900@gmail.com \
--to=robherring2@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).