diff options
author | Jonas Aaberg <jonas.aberg@stericsson.com> | 2011-12-22 09:34:40 +0100 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@stericsson.com> | 2012-06-04 19:45:08 +0800 |
commit | ca2d9e858b38d71a97b535b0dca41fe02dae7a0b (patch) | |
tree | 09188b43ae4c2ecb2c40f4bde5e43817ece9d17f /arch/arm/mach-ux500/pm/suspend.c | |
parent | 9ce0109275e82697ada4b005325e663ba72c3181 (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.c | 4 |
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 = { |