ARM: shmobile: Setup APMU for suspend in non-SMP case
Magnus Damm
maintainerPATCH 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.
Signed-off-by Magnus Damm <[email protected]>
---
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_suspevoid __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