linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 06/08] ARM: shmobile: Setup APMU for suspend in non-SMP case
@ 2014-06-05  5:15 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2014-06-05  5:15 UTC (permalink / raw)
  To: linux-sh

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(+)

--- 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-05  5:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05  5:15 [PATCH 06/08] ARM: shmobile: Setup APMU for suspend in non-SMP case Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).