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_dbg.h | |
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_dbg.h')
-rw-r--r-- | arch/arm/mach-ux500/pm/suspend_dbg.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend_dbg.h b/arch/arm/mach-ux500/pm/suspend_dbg.h index 29bfec7e269..1e45fa05e5e 100644 --- a/arch/arm/mach-ux500/pm/suspend_dbg.h +++ b/arch/arm/mach-ux500/pm/suspend_dbg.h @@ -28,6 +28,10 @@ bool ux500_suspend_deepsleep_enabled(void); void ux500_suspend_dbg_sleep_status(bool is_deepsleep); void ux500_suspend_dbg_init(void); int ux500_suspend_dbg_begin(suspend_state_t state); +void ux500_suspend_dbg_end(void); +void ux500_suspend_dbg_test_set_wakeup(void); +void ux500_suspend_dbg_test_start(int num); +bool ux500_suspend_test_success(bool *ongoing); #else static inline bool ux500_suspend_enabled(void) @@ -57,6 +61,15 @@ static inline int ux500_suspend_dbg_begin(suspend_state_t state) { return 0; } +static inline void ux500_suspend_dbg_end(void) { } +static inline void ux500_suspend_dbg_test_set_wakeup(void) { } +static inline void ux500_suspend_dbg_test_start(int num) +{ } +static inline bool ux500_suspend_test_success(bool *ongoing) +{ + (*ongoing) = false; + return false; +} #endif |