alarmtimer: Add functions for timerfd support
authorTodd Poynor <toddpoynor@google.com>
Wed, 15 May 2013 21:38:11 +0000 (14:38 -0700)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:55 +0000 (12:00 +0900)
commitd3054e50b82019c3a261e54aa2601628a2aca025
tree817db44c058fa3ab4a62014d5122a0fbb31bdddd
parente66e1d1c69f0620644f16057bc79b6634f8fef66
alarmtimer: Add functions for timerfd support

Add functions needed for hooking up alarmtimer to timerfd:

* alarm_restart: Similar to hrtimer_restart, restart an alarmtimer after
  the expires time has already been updated (as with alarm_forward).

* alarm_forward_now: Similar to hrtimer_forward_now, move the expires
  time forward to an interval from the current time of the associated clock.

* alarm_start_relative: Start an alarmtimer with an expires time relative to
  the current time of the associated clock.

* alarm_expires_remaining: Similar to hrtimer_expires_remaining, return the
  amount of time remaining until alarm expiry.

Change-Id: I609e268d53725b2c2b62b618ccc388f4329997f5
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
include/linux/alarmtimer.h
kernel/time/alarmtimer.c