summaryrefslogtreecommitdiffstats
path: root/net/caif/chnl_net.c
diff options
context:
space:
mode:
authorTodd Poynor <toddpoynor@google.com>2012-08-09 00:37:27 -0700
committerJohn Stultz <john.stultz@linaro.org>2012-09-24 12:38:01 -0400
commit59a93c27c4892f04dfd8f91f8b64d0d6eae43e6e (patch)
treefcdf1189ed72a2ffaafb4a36b8224edea0ea0f56 /net/caif/chnl_net.c
parentec145babe754f9ea1079034a108104b6001e001c (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 due to an imminent alarm, hold a wakeup source for 2 seconds to process the alarm prior to reattempting suspend. If setting the alarm incurs an -ETIME for an alarm set in the past, or any other problem setting the alarm, abort suspend and hold a wakelock for 1 second while the alarm is allowed to be serviced or other hopefully transient conditions preventing the alarm clear up. Signed-off-by: Todd Poynor <toddpoynor@google.com> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'net/caif/chnl_net.c')
0 files changed, 0 insertions, 0 deletions