From: Will Deacon Date: Mon, 6 Jun 2011 11:35:46 +0000 (+0100) Subject: ARM: highbank: convert logical CPU numbers to physical numbers X-Git-Tag: MMI-PSA29.97-13-9~17947^2~8^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bf14fc54d6386ccd1ef3f1b0ff69e7a765cf8ded;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ARM: highbank: convert logical CPU numbers to physical numbers 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. Acked-by: Rob Herring Signed-off-by: Will Deacon --- diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c index b82dcf08e747..88660d500f5b 100644 --- a/arch/arm/mach-highbank/highbank.c +++ b/arch/arm/mach-highbank/highbank.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include @@ -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),