posix-timers: Add cancel/arm callbacks
authorThomas Gleixner <tglx@linutronix.de>
Tue, 30 May 2017 21:15:52 +0000 (23:15 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 4 Jun 2017 13:40:28 +0000 (15:40 +0200)
commit525b8ed91671e29e187dfe02d408b11190ccf494
tree1610aab48342bdb29da3b911679a066f4b74c38c
parenteabdec04385376d560078992710104cc7be2ce1b
posix-timers: Add cancel/arm callbacks

Add timer_try_to_cancel() and timer_arm() callbacks to kclock which allow
to make common_timer_set() usable by both hrtimer and alarmtimer based
clocks.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/20170530211657.278022962@linutronix.de
kernel/time/posix-timers.h