diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-10-06 17:30:23 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-11 17:42:28 -0500 |
commit | d7814e4df6e9c54680a30de3f439c66a2a55ce94 (patch) | |
tree | d516729e2ec5203adf9325ca77a4a00672adfd85 /arch/arm/mach-omap2/pm-debug.c | |
parent | c40552bc82166adb21a1a7fcb1dc4e76352b1b79 (diff) |
PM debug: allow configurable wakeup from suspend on OMAP GPtimer
Using debugfs, export a configurable wakeup timer to be used to
wakeup system from suspend.
If a non-zero value is written to
/debug/pm_debug/wakeup_timer_seconds, A timer wakeup event will wake
the system and resume after the configured number of seconds.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm-debug.c')
-rw-r--r-- | arch/arm/mach-omap2/pm-debug.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 1725da3f4e18..8baa30d2acfb 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c | |||
@@ -596,6 +596,8 @@ static int __init pm_dbg_init(void) | |||
596 | &enable_off_mode, &pm_dbg_option_fops); | 596 | &enable_off_mode, &pm_dbg_option_fops); |
597 | (void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUGO, d, | 597 | (void) debugfs_create_file("sleep_while_idle", S_IRUGO | S_IWUGO, d, |
598 | &sleep_while_idle, &pm_dbg_option_fops); | 598 | &sleep_while_idle, &pm_dbg_option_fops); |
599 | (void) debugfs_create_file("wakeup_timer_seconds", S_IRUGO | S_IWUGO, d, | ||
600 | &wakeup_timer_seconds, &pm_dbg_option_fops); | ||
599 | pm_dbg_init_done = 1; | 601 | pm_dbg_init_done = 1; |
600 | 602 | ||
601 | return 0; | 603 | return 0; |