aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2011-08-23 17:19:29 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-10-17 04:02:43 -0400
commitd6257288c4052465feeff7e283e35ec0ed06ca03 (patch)
treee9dbc251dfb47716d592681d228bda73a3a63121 /arch/arm/include
parentc9018aab8eee24b993c12c7aff7fc99d3d73f298 (diff)
ARM: 7060/1: smp: populate logical CPU mapping during boot
To allow booting Linux on a CPU with physical ID != 0, we need to provide a mapping from the logical CPU number to the physical CPU number. This patch adds such a mapping and populates it during boot. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/smp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h
index e42d96a45d3..674ebcd337f 100644
--- a/arch/arm/include/asm/smp.h
+++ b/arch/arm/include/asm/smp.h
@@ -66,6 +66,12 @@ extern void platform_secondary_init(unsigned int cpu);
66extern void platform_smp_prepare_cpus(unsigned int); 66extern void platform_smp_prepare_cpus(unsigned int);
67 67
68/* 68/*
69 * Logical CPU mapping.
70 */
71extern int __cpu_logical_map[NR_CPUS];
72#define cpu_logical_map(cpu) __cpu_logical_map[cpu]
73
74/*
69 * Initial data for bringing up a secondary CPU. 75 * Initial data for bringing up a secondary CPU.
70 */ 76 */
71struct secondary_data { 77struct secondary_data {