diff mbox

[06/08] ARM: shmobile: Setup APMU for suspend in non-SMP case

Message ID 20140605051553.18075.47511.sendpatchset@w520 (mailing list archive)
State Superseded
Headers show

Commit Message

Magnus Damm June 5, 2014, 5:15 a.m. UTC
From: Magnus Damm <damm+renesas@opensource.se>

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

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
---

 arch/arm/mach-shmobile/platsmp-apmu.c |    4 ++++
 1 file changed, 4 insertions(+)

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- 0006/arch/arm/mach-shmobile/platsmp-apmu.c
+++ work/arch/arm/mach-shmobile/platsmp-apmu.c	2014-06-05 12:52:50.000000000 +0900
@@ -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