summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2011-08-10 11:31:03 -0700
committerJohn Stultz <john.stultz@linaro.org>2011-08-10 14:55:23 -0700
commitdce75a8c71819ed4c7efdcd53c9b6f6356dc8cb5 (patch)
tree76d25888bb83814fc1f9d5f8838483730ca59882 /include/linux
parent54da23b720d5d612f8f1669f9ed3744008fb7382 (diff)
alarmtimers: Add alarm_forward functionality
In order to avoid wasting time expiring and re-adding very high freq periodic alarmtimers, introduce alarm_forward() which is similar to hrtimer_forward and moves the timer to the next future expiration time and returns the number of overruns. CC: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/alarmtimer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/alarmtimer.h b/include/linux/alarmtimer.h
index 0289eb29e79..17535963b27 100644
--- a/include/linux/alarmtimer.h
+++ b/include/linux/alarmtimer.h
@@ -42,4 +42,6 @@ void alarm_init(struct alarm *alarm, enum alarmtimer_type type,
void alarm_start(struct alarm *alarm, ktime_t start, ktime_t period);
void alarm_cancel(struct alarm *alarm);
+u64 alarm_forward(struct alarm *alarm, ktime_t now, ktime_t interval);
+
#endif