diff options
author | Tony Lindgren <tony@atomide.com> | 2016-06-28 02:30:02 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2016-06-28 02:30:02 -0400 |
commit | 44e7475d40eb26b8d3a6e2b2f7a5f12a5fe0942e (patch) | |
tree | 0d9ec51bd38885a70234fb62f7f1b9ac51a5f401 | |
parent | 3696203c47544f126fe6f0edd6e88e5cc90e7f34 (diff) |
ARM: OMAP2+: Fix build if CONFIG_SMP is not set
Looks like I only partially fixed up things if CONFIG_SMP
is not set for the recent kexec changes. We don't have
boot_secondary available without SMP as reported by Arnd.
Fixes: 0573b957fc21 ("ARM: OMAP4+: Prevent CPU1 related hang with kexec")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/omap-headsmp.S | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap-headsmp.S b/arch/arm/mach-omap2/omap-headsmp.S index 6d1dffca6c7b..fe36ce2734d4 100644 --- a/arch/arm/mach-omap2/omap-headsmp.S +++ b/arch/arm/mach-omap2/omap-headsmp.S | |||
@@ -24,6 +24,16 @@ | |||
24 | #define AUX_CORE_BOOT0_PA 0x48281800 | 24 | #define AUX_CORE_BOOT0_PA 0x48281800 |
25 | #define API_HYP_ENTRY 0x102 | 25 | #define API_HYP_ENTRY 0x102 |
26 | 26 | ||
27 | ENTRY(omap_secondary_startup) | ||
28 | #ifdef CONFIG_SMP | ||
29 | b secondary_startup | ||
30 | #else | ||
31 | /* Should never get here */ | ||
32 | again: wfi | ||
33 | b again | ||
34 | #endif | ||
35 | #ENDPROC(omap_secondary_startup) | ||
36 | |||
27 | /* | 37 | /* |
28 | * OMAP5 specific entry point for secondary CPU to jump from ROM | 38 | * OMAP5 specific entry point for secondary CPU to jump from ROM |
29 | * code. This routine also provides a holding flag into which | 39 | * code. This routine also provides a holding flag into which |
@@ -39,7 +49,7 @@ wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 | |||
39 | and r4, r4, #0x0f | 49 | and r4, r4, #0x0f |
40 | cmp r0, r4 | 50 | cmp r0, r4 |
41 | bne wait | 51 | bne wait |
42 | b secondary_startup | 52 | b omap_secondary_startup |
43 | ENDPROC(omap5_secondary_startup) | 53 | ENDPROC(omap5_secondary_startup) |
44 | /* | 54 | /* |
45 | * Same as omap5_secondary_startup except we call into the ROM to | 55 | * Same as omap5_secondary_startup except we call into the ROM to |
@@ -59,7 +69,7 @@ wait_2: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 | |||
59 | adr r0, hyp_boot | 69 | adr r0, hyp_boot |
60 | smc #0 | 70 | smc #0 |
61 | hyp_boot: | 71 | hyp_boot: |
62 | b secondary_startup | 72 | b omap_secondary_startup |
63 | ENDPROC(omap5_secondary_hyp_startup) | 73 | ENDPROC(omap5_secondary_hyp_startup) |
64 | /* | 74 | /* |
65 | * OMAP4 specific entry point for secondary CPU to jump from ROM | 75 | * OMAP4 specific entry point for secondary CPU to jump from ROM |
@@ -82,7 +92,7 @@ hold: ldr r12,=0x103 | |||
82 | * we've been released from the wait loop,secondary_stack | 92 | * we've been released from the wait loop,secondary_stack |
83 | * should now contain the SVC stack for this core | 93 | * should now contain the SVC stack for this core |
84 | */ | 94 | */ |
85 | b secondary_startup | 95 | b omap_secondary_startup |
86 | ENDPROC(omap4_secondary_startup) | 96 | ENDPROC(omap4_secondary_startup) |
87 | 97 | ||
88 | ENTRY(omap4460_secondary_startup) | 98 | ENTRY(omap4460_secondary_startup) |
@@ -119,5 +129,5 @@ hold_2: ldr r12,=0x103 | |||
119 | * we've been released from the wait loop,secondary_stack | 129 | * we've been released from the wait loop,secondary_stack |
120 | * should now contain the SVC stack for this core | 130 | * should now contain the SVC stack for this core |
121 | */ | 131 | */ |
122 | b secondary_startup | 132 | b omap_secondary_startup |
123 | ENDPROC(omap4460_secondary_startup) | 133 | ENDPROC(omap4460_secondary_startup) |