s390: Use direct ktime path for s390 clockevent device
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 23 Aug 2011 13:29:44 +0000 (15:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Sep 2011 09:10:56 +0000 (11:10 +0200)
commit4f37a68cdaf6dea833cfdded2a3e0c47c0f006da
tree2c2ce0efed94dea56c00eb8ac138e6c5ad1d8cbe
parent65516f8a7c2028381f0dae4c16ddb621c96158cc
s390: Use direct ktime path for s390 clockevent device

The clock comparator on s390 uses the same format as the TOD clock.
If the value in the clock comparator is smaller than the current TOD
value an interrupt is pending. Use the CLOCK_EVT_FEAT_KTIME feature
to get the unmodified ktime of the next clockevent expiration and
use it to program the clock comparator without querying the TOD clock.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: john stultz <johnstul@us.ibm.com>
Link: http://lkml.kernel.org/r/20110823133143.153017933@de.ibm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/s390/kernel/time.c