Skip to contentSkip to conversation

ARM: shmobile: Setup APMU for suspend in non-SMP case

PATCH Superseded Magnus Damm 1 participant 1 message Jun 5, 2014

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 6/8 ARM: shmobile: Setup APMU for suspend in non-SMP case

From: Magnus Damm <[email protected]>

Extend the APMU specific Suspend-to-RAM code to initialize the APMU when SMP is disabled in the kernel config.

---

 arch/arm/mach-shmobile/platsmp-apmu.c |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-shmobile/platsmp-apmu.c +4 -0
@@ -242,6 +242,10 @@ static int shmobile_smp_apmu_enter_suspe
 
 void __init shmobile_smp_apmu_suspend_init(void)
 {
+#ifndef CONFIG_SMP
+	/* initialize APMU for non-SMP case */
+	shmobile_smp_apmu_prepare_cpus(1);
+#endif
 	shmobile_suspend_ops.enter = shmobile_smp_apmu_enter_suspend;
 }
 #else