]> git.baikalelectronics.ru Git - kernel.git/commit
alarmtimers: Add alarm_forward functionality
authorJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 18:31:03 +0000 (11:31 -0700)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 10 Aug 2011 21:55:23 +0000 (14:55 -0700)
commit9189e226e5dfb37e76b8462967bf32664e9b7ebf
tree76d25888bb83814fc1f9d5f8838483730ca59882
parentad5c1c0cfa90f2c4f64902a07861b6aaf72611e7
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>
include/linux/alarmtimer.h
kernel/time/alarmtimer.c