From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: highbank: convert logical CPU numbers to physical numbers
Date: Tue, 08 Nov 2011 09:59:17 -0600 [thread overview]
Message-ID: <4EB951D5.9060005@gmail.com> (raw)
In-Reply-To: <1320762894-11824-3-git-send-email-will.deacon@arm.com>
On 11/08/2011 08:34 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>
> ---
> arch/arm/mach-highbank/highbank.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
> index b82dcf0..a6cdc27 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,7 @@ static void __init highbank_map_io(void)
>
> void highbank_set_cpu_jump(int cpu, void *jump_addr)
> {
> + cpu = cpu_logical_map(cpu);
This doesn't build for !CONFIG_SMP. It's possible to want to do this for
core 0 in the cpuidle case.
Rob
> 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),
next prev parent reply other threads:[~2011-11-08 15:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 14:34 [PATCH 0/2] cpu_logical_map updates for newly merged platforms Will Deacon
2011-11-08 14:34 ` [PATCH 1/2] ARM: mach-imx: convert logical CPU numbers to physical numbers Will Deacon
2011-11-11 9:29 ` Sascha Hauer
2011-11-11 10:08 ` Will Deacon
2011-11-11 10:56 ` Will Deacon
2011-11-11 13:07 ` Shawn Guo
2011-11-11 13:41 ` Will Deacon
2011-11-11 23:07 ` Shawn Guo
2011-11-08 14:34 ` [PATCH 2/2] ARM: highbank: " Will Deacon
2011-11-08 15:59 ` Rob Herring [this message]
2011-11-08 16:10 ` Will Deacon
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=4EB951D5.9060005@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).