summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm-debug.c
diff options
context:
space:
mode:
authorAri Kauppi <Ext-Ari.Kauppi@nokia.com>2010-03-23 08:04:59 +0100
committerKevin Hilman <khilman@deeprootsystems.com>2010-05-12 18:39:00 +0200
commit8e2efde9f1ba2fb918245f9419246e4e59b42a11 (patch)
tree415364ac960ac76f9e74ea6b4caebd854a014b9b /arch/arm/mach-omap2/pm-debug.c
parentOMAP3: PRCM interrupt: only check and clear enabled PRCM IRQs (diff)
downloadlinux-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.c3
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)