summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/pm/suspend.c
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-12-22 09:34:40 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-06-04 19:45:08 +0800
commitca2d9e858b38d71a97b535b0dca41fe02dae7a0b (patch)
tree09188b43ae4c2ecb2c40f4bde5e43817ece9d17f /arch/arm/mach-ux500/pm/suspend.c
parent9ce0109275e82697ada4b005325e663ba72c3181 (diff)
[ANDROID]: ARM: u8500: pm: debug: Add suspend test casepm-android
Add automatic suspend testcase that can be used from android. To use, write the number of time you wish to do suspend to <debugfs>/pwr_test/suspend and when done read the same file. It will answer PASS or FAIL. ST-Ericsson Linux next: - ST-Ericsson ID: 370799 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: Iad7d5365e7cde8b9aeeb87e99318e5455d56201f Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/43663
Diffstat (limited to 'arch/arm/mach-ux500/pm/suspend.c')
-rw-r--r--arch/arm/mach-ux500/pm/suspend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c
index df527964182..9dd4d86a2f3 100644
--- a/arch/arm/mach-ux500/pm/suspend.c
+++ b/arch/arm/mach-ux500/pm/suspend.c
@@ -76,6 +76,8 @@ static int suspend(bool do_deepsleep)
prcmu_enable_wakeups(PRCMU_WAKEUP(ABB));
#endif
+ ux500_suspend_dbg_test_set_wakeup();
+
context_vape_save();
context_fsmc_save();
@@ -258,6 +260,8 @@ static void ux500_suspend_end(void)
(void) prcmu_qos_update_requirement(PRCMU_QOS_ARM_OPP,
"suspend", 25);
suspend_state = PM_SUSPEND_ON;
+
+ ux500_suspend_dbg_end();
}
static struct platform_suspend_ops ux500_suspend_ops = {