diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-01-30 18:25:31 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-02-10 05:23:14 -0500 |
commit | 8684014d71e259f62f7dc24a20324e232806b2ef (patch) | |
tree | 41d5815ab4a03294486145e07987a693ed6bf523 /arch/arm/mach-qcom | |
parent | bafe5865834c0cc0d0f937deecc275ccdd588ce8 (diff) |
ARM: 8301/1: qcom: Use secondary_startup_arm()
On qcom platforms we always enter the kernel in ARM mode,
regardless of the kernel being compiled for THUMB mode. Use
secondary_startup_arm() to properly switch the mode to what the
kernel expects if required.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-qcom')
-rw-r--r-- | arch/arm/mach-qcom/platsmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-qcom/platsmp.c b/arch/arm/mach-qcom/platsmp.c index d6908569ecaf..09cffed4c0a4 100644 --- a/arch/arm/mach-qcom/platsmp.c +++ b/arch/arm/mach-qcom/platsmp.c | |||
@@ -44,7 +44,7 @@ | |||
44 | #define APCS_SAW2_VCTL 0x14 | 44 | #define APCS_SAW2_VCTL 0x14 |
45 | #define APCS_SAW2_2_VCTL 0x1c | 45 | #define APCS_SAW2_2_VCTL 0x1c |
46 | 46 | ||
47 | extern void secondary_startup(void); | 47 | extern void secondary_startup_arm(void); |
48 | 48 | ||
49 | static DEFINE_SPINLOCK(boot_lock); | 49 | static DEFINE_SPINLOCK(boot_lock); |
50 | 50 | ||
@@ -337,7 +337,7 @@ static void __init qcom_smp_prepare_cpus(unsigned int max_cpus) | |||
337 | flags |= cold_boot_flags[map]; | 337 | flags |= cold_boot_flags[map]; |
338 | } | 338 | } |
339 | 339 | ||
340 | if (scm_set_boot_addr(virt_to_phys(secondary_startup), flags)) { | 340 | if (scm_set_boot_addr(virt_to_phys(secondary_startup_arm), flags)) { |
341 | for_each_present_cpu(cpu) { | 341 | for_each_present_cpu(cpu) { |
342 | if (cpu == smp_processor_id()) | 342 | if (cpu == smp_processor_id()) |
343 | continue; | 343 | continue; |