clockevents: Add direct ktime programming function
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Aug 2011 13:29:43 +0000 (15:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Sep 2011 09:10:56 +0000 (11:10 +0200)
commit65516f8a7c2028381f0dae4c16ddb621c96158cc
tree1f6192832c77e25499331b074398e165c1220197
parentd1748302f70be7469809809283fe164156a34231
clockevents: Add direct ktime programming function

There is at least one architecture (s390) with a sane clockevent device
that can be programmed with the equivalent of a ktime. No need to create
a delta against the current time, the ktime can be used directly.

A new clock device function 'set_next_ktime' is introduced that is called
with the unmodified ktime for the timer if the clock event device has the
CLOCK_EVT_FEAT_KTIME bit set.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: john stultz <johnstul@us.ibm.com>
Link: http://lkml.kernel.org/r/20110823133142.815350967@de.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/clockchips.h
kernel/time/clockevents.c