diff options
author | Todd Poynor <toddpoynor@google.com> | 2012-08-07 17:14:52 -0700 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2012-08-13 14:13:20 +0530 |
commit | 564e6b431e9696d6b7186d120d563a74ae290092 (patch) | |
tree | 4ed05fbc23e72e57575dcc53ca551f5b4f94098a /kernel/elfcore.c | |
parent | 559be66522421d65e323a2fae1016d968c1b9d12 (diff) |
alarmtimer: implement minimum alarm interval for allowing suspend
alarmtimer suspend return -EBUSY if the next alarm will fire in less
than 2 seconds. This allows one RTC seconds tick to occur subsequent
to this check before the alarm wakeup time is set, ensuring the wakeup
time is still in the future (assuming the RTC does not tick one more
second prior to setting the alarm). If suspend is rejected, hold a
wakeup source for 2 seconds to process the alarm prior to reattempting
suspend.
Change-Id: If38e2568da0ea01dfee6e00323ce7e2c00f2f110
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'kernel/elfcore.c')
0 files changed, 0 insertions, 0 deletions