diff options
author | Ari Kauppi <Ext-Ari.Kauppi@nokia.com> | 2010-03-23 08:04:59 +0100 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-05-12 18:39:00 +0200 |
commit | 8e2efde9f1ba2fb918245f9419246e4e59b42a11 (patch) | |
tree | 415364ac960ac76f9e74ea6b4caebd854a014b9b /arch/arm/mach-omap2/pm-debug.c | |
parent | OMAP3: PRCM interrupt: only check and clear enabled PRCM IRQs (diff) | |
download | linux-8e2efde9f1ba2fb918245f9419246e4e59b42a11.tar.xz linux-8e2efde9f1ba2fb918245f9419246e4e59b42a11.zip |
OMAP3: PM: Add milliseconds interface to suspend wakeup timer
Millisecond resolution is possible and there are use cases for it
(automatic testing).
Seconds-based interface is preserved for compatibility.
Signed-off-by: Ari Kauppi <Ext-Ari.Kauppi@nokia.com>
Reviewed-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 6cac9817c243..723b44e252fd 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -548,6 +548,9 @@ static int option_set(void *data, u64 val) { u32 *option = data; + if (option == &wakeup_timer_milliseconds && val >= 1000) + return -EINVAL; + *option = val; if (option == &enable_off_mode) |