Skip to content

Commit 8684014

Browse files
bebarinoRussell King
authored andcommitted
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>
1 parent bafe586 commit 8684014

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/arm/mach-qcom/platsmp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#define APCS_SAW2_VCTL 0x14
4545
#define APCS_SAW2_2_VCTL 0x1c
4646

47-
extern void secondary_startup(void);
47+
extern void secondary_startup_arm(void);
4848

4949
static DEFINE_SPINLOCK(boot_lock);
5050

@@ -337,7 +337,7 @@ static void __init qcom_smp_prepare_cpus(unsigned int max_cpus)
337337
flags |= cold_boot_flags[map];
338338
}
339339

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)) {
341341
for_each_present_cpu(cpu) {
342342
if (cpu == smp_processor_id())
343343
continue;

0 commit comments

Comments
 (0)